| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | trait ArgumentsTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Argument[] |
||
| 13 | */ |
||
| 14 | protected $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 array|Argument[] $arguments |
||
| 34 | * @return $this |
||
| 35 | * @throws InvariantException |
||
| 36 | */ |
||
| 37 | protected function buildArguments(array $arguments) |
||
| 59 |