| Total Complexity | 8 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Args |
||
| 13 | { |
||
| 14 | protected ArgType $type; |
||
| 15 | protected int $count; |
||
| 16 | |||
| 17 | /** @psalm-var ArgsArray */ |
||
| 18 | protected readonly array $args; |
||
| 19 | |||
| 20 | 60 | public function __construct(array $args) |
|
| 23 | } |
||
| 24 | |||
| 25 | /** @psalm-return ArgsArray */ |
||
| 26 | 25 | public function get(): array |
|
| 27 | { |
||
| 28 | 25 | return $this->args; |
|
| 29 | } |
||
| 30 | |||
| 31 | 59 | public function count(): int |
|
| 34 | } |
||
| 35 | |||
| 36 | 26 | public function type(): ArgType |
|
| 37 | { |
||
| 38 | 26 | return $this->type; |
|
| 39 | } |
||
| 40 | |||
| 41 | 60 | protected function prepare(array $args): array |
|
| 58 | } |
||
| 59 | } |
||
| 60 |