vendor and env first commit
This commit is contained in:
Vendored
+44
@@ -0,0 +1,44 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user