1 | <?php |
||
11 | class CommandArgument implements CommandArgumentInterface |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $name; |
||
18 | |||
19 | /** |
||
20 | * @var InputArgumentType |
||
21 | */ |
||
22 | protected $type; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description; |
||
28 | |||
29 | /** |
||
30 | * CommandArgument constructor. |
||
31 | * |
||
32 | * @param string $name |
||
33 | * @param InputArgumentType $type |
||
34 | * @param string $description |
||
35 | */ |
||
36 | public function __construct(string $name, InputArgumentType $type, string $description) |
||
42 | |||
43 | /** |
||
44 | * @return array |
||
45 | */ |
||
46 | public function toArray() |
||
54 | |||
55 | } |
||
56 |