| 1 | <?php |
||
| 17 | class Command |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $definition; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $arguments = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Getter for field definition. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getDefinition() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Setter for field definition. |
||
| 41 | * |
||
| 42 | * @param string $definition |
||
| 43 | * |
||
| 44 | * @return self |
||
| 45 | */ |
||
| 46 | public function setDefinition($definition) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Getter for association arguments. |
||
| 55 | * |
||
| 56 | * @return ArrayCollection |
||
| 57 | */ |
||
| 58 | public function getArguments() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Setter for association arguments. |
||
| 65 | * |
||
| 66 | * @param array $arguments |
||
| 67 | * |
||
| 68 | * @return self |
||
| 69 | */ |
||
| 70 | public function setArguments(array $arguments = []) |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Adds an argument if it doesn't exist to the association with arguments. |
||
| 79 | * |
||
| 80 | * @param Argument $argument |
||
| 81 | * |
||
| 82 | * @return self |
||
| 83 | */ |
||
| 84 | public function addArgument(Argument $argument = null) |
||
| 90 | } |
||
| 91 |