Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | trait ArgumentsTrait |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var Argument[] |
||
13 | */ |
||
14 | private $_arguments = []; |
||
15 | |||
16 | /** |
||
17 | * @return bool |
||
18 | */ |
||
19 | public function hasArguments(): bool |
||
20 | { |
||
21 | return !empty($this->_arguments); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return Argument[] |
||
26 | */ |
||
27 | public function getArguments(): array |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param Argument[] $arguments |
||
34 | * @return $this |
||
35 | * @throws \Exception |
||
36 | */ |
||
37 | protected function setArgs(array $arguments) |
||
51 |