| @@ 63-70 (lines=8) @@ | ||
| 60 | * @param string | |
| 61 | * @return mixed | |
| 62 | */ | |
| 63 | public function name(string $value = null) | |
| 64 |     { | |
| 65 |         if (null === $value) { | |
| 66 | return $this->name; | |
| 67 | } | |
| 68 | $this->name = $value; | |
| 69 | return $this; | |
| 70 | } | |
| 71 | ||
| 72 | /** | |
| 73 | * version getter and setter. | |
| @@ 93-100 (lines=8) @@ | ||
| 90 | * @param string | |
| 91 | * @return mixed | |
| 92 | */ | |
| 93 | public function description(string $value = null) | |
| 94 |     { | |
| 95 |         if (null === $value) { | |
| 96 | return $this->description; | |
| 97 | } | |
| 98 | $this->description = $value; | |
| 99 | return $this; | |
| 100 | } | |
| 101 | ||
| 102 | /** | |
| 103 | * descriptions getter and setter. | |
| @@ 249-256 (lines=8) @@ | ||
| 246 | * @param callable | |
| 247 | * @return mixed | |
| 248 | */ | |
| 249 | public function action(callable $value = null) | |
| 250 |     { | |
| 251 |         if (null === $value) { | |
| 252 | return $this->action; | |
| 253 | } | |
| 254 | $this->action = $value; | |
| 255 | return $this; | |
| 256 | } | |
| 257 | ||
| 258 | public function command(string $name, Command $command = null) | |
| 259 |     { | |