Output
2 years ago
CompletionInput.php
1 year ago
CompletionSuggestions.php
2 years ago
Suggestion.php
2 years ago
Suggestion.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace Matomo\Dependencies\Symfony\Component\Console\Completion; |
| 12 | |
| 13 | /** |
| 14 | * Represents a single suggested value. |
| 15 | * |
| 16 | * @author Wouter de Jong <wouter@wouterj.nl> |
| 17 | */ |
| 18 | class Suggestion |
| 19 | { |
| 20 | private $value; |
| 21 | public function __construct(string $value) |
| 22 | { |
| 23 | $this->value = $value; |
| 24 | } |
| 25 | public function getValue() : string |
| 26 | { |
| 27 | return $this->value; |
| 28 | } |
| 29 | public function __toString() : string |
| 30 | { |
| 31 | return $this->getValue(); |
| 32 | } |
| 33 | } |
| 34 |