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