1 | <?php |
||
7 | class Collection extends FilteredCollection |
||
8 | { |
||
9 | 40 | public function __get(string $key): Collection |
|
10 | { |
||
11 | 40 | if (empty($this->arguments)) { |
|
12 | 2 | throw InaccessibleArgumentException::fromEmptyArguments($key); |
|
13 | } |
||
14 | |||
15 | 38 | return parent::__get($key); |
|
16 | } |
||
17 | |||
18 | 16 | public function add(array $itemData): void |
|
28 | } |
||
29 |