package and depencies

This commit is contained in:
RafficMohammed
2023-01-08 02:57:24 +05:30
parent d5332eb421
commit 1d54b8bc7f
4309 changed files with 193331 additions and 172289 deletions

View File

@@ -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();