Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/./../app/.././../../finland.picotech.app/public_html/storage/../vendor/./phpoption/../laravel/../nikic/../telnyx/../brick/../unicodeveloper/../firebase/../nunomaduro/../phpoption/../ralouphie/../phar-io/../laravel/./prompts/src
الملفات الموجودة في هذا الـ Path:
.
..
Concerns
ConfirmPrompt.php
Exceptions
Key.php
MultiSearchPrompt.php
MultiSelectPrompt.php
Note.php
Output
PasswordPrompt.php
Progress.php
Prompt.php
SearchPrompt.php
SelectPrompt.php
Spinner.php
SuggestPrompt.php
Table.php
Terminal.php
TextPrompt.php
Themes
helpers.php

مشاهدة ملف: Note.php

<?php

namespace Laravel\Prompts;

class Note extends Prompt
{
    /**
     * Create a new Note instance.
     */
    public function __construct(public string $message, public ?string $type = null)
    {
        //
    }

    /**
     * Display the note.
     */
    public function display(): void
    {
        $this->prompt();
    }

    /**
     * Display the note.
     */
    public function prompt(): bool
    {
        $this->capturePreviousNewLines();

        $this->state = 'submit';

        static::output()->write($this->renderTheme());

        return true;
    }

    /**
     * Get the value of the prompt.
     */
    public function value(): bool
    {
        return true;
    }
}