1 | <?php |
||
22 | class EntityCollection extends AbstractCollection implements |
||
23 | CollectionInterface |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Adds an entity to the collection |
||
28 | * |
||
29 | * @param EntityInterface $entity |
||
30 | * @return $this|self|EntityCollection |
||
31 | */ |
||
32 | public function add(EntityInterface $entity) |
||
37 | |||
38 | /** |
||
39 | * Offset to set |
||
40 | * |
||
41 | * @link http://php.net/manual/en/arrayaccess.offsetset.php |
||
42 | * |
||
43 | * @param mixed $offset The offset to assign the value to. |
||
44 | * @param mixed $value The value to set. |
||
45 | */ |
||
46 | public function offsetSet($offset, $value) |
||
50 | } |