/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Console/Completion/Suggestion.php
41 строка
828 B
Dariusz Ruminski
CS: trailing commas
04 янв 2024, 01:36
04 янв 2024, 01:36
0cda041
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Completion; /** * Represents a single suggested value. * * @author Wouter de Jong <wouter@wouterj.nl> */ class Suggestion implements \Stringable { public function __construct( private readonly string $value, private readonly string $description = '', ) { } public function getValue(): string { return $this->value; } public function getDescription(): string { return $this->description; } public function __toString(): string { return $this->getValue(); } }