| 1 | <?php |
||
| 17 | class Argument implements DefinitionArgumentInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $name; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var TypeNameInterface |
||
| 26 | */ |
||
| 27 | private $type; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Argument constructor. |
||
| 31 | * @param string $name |
||
| 32 | * @param TypeNameInterface $type |
||
| 33 | */ |
||
| 34 | public function __construct(string $name, TypeNameInterface $type) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getName(): string |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return TypeNameInterface |
||
| 50 | */ |
||
| 51 | public function getHint(): TypeNameInterface |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function __toString(): string |
||
| 63 | } |
||
| 64 |