package and depencies
This commit is contained in:
16
vendor/symfony/console/Completion/Suggestion.php
vendored
16
vendor/symfony/console/Completion/Suggestion.php
vendored
@@ -16,13 +16,12 @@ namespace Symfony\Component\Console\Completion;
|
||||
*
|
||||
* @author Wouter de Jong <wouter@wouterj.nl>
|
||||
*/
|
||||
class Suggestion
|
||||
class Suggestion implements \Stringable
|
||||
{
|
||||
private $value;
|
||||
|
||||
public function __construct(string $value)
|
||||
{
|
||||
$this->value = $value;
|
||||
public function __construct(
|
||||
private readonly string $value,
|
||||
private readonly string $description = ''
|
||||
) {
|
||||
}
|
||||
|
||||
public function getValue(): string
|
||||
@@ -30,6 +29,11 @@ class Suggestion
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return $this->getValue();
|
||||
|
Reference in New Issue
Block a user