1 | <?php |
||
11 | abstract class EntityStrictCollection extends EntityCollection |
||
12 | { |
||
13 | /** |
||
14 | * Collection constructor. |
||
15 | * @param array $entities |
||
16 | * @param bool $allowEntitiesChildren |
||
17 | * @throws \Exception |
||
18 | */ |
||
19 | 59 | public function __construct(array $entities, bool $allowEntitiesChildren = false) |
|
31 | |||
32 | /** |
||
33 | * @param int $offset |
||
34 | * @param null $length |
||
35 | * @return static |
||
36 | * @throws \Exception |
||
37 | */ |
||
38 | 12 | public function slice(int $offset, $length = null) |
|
47 | |||
48 | /** |
||
49 | * @return \Exception |
||
50 | */ |
||
51 | 7 | public static function customEmptyException(): \Exception |
|
55 | } |
||
56 |