1 | <?php |
||
18 | class TypedSet extends TypedArray |
||
19 | { |
||
20 | /** |
||
21 | * Add an object to this collection |
||
22 | * |
||
23 | * @param object $object The object you want to add |
||
24 | * |
||
25 | * @param null|object $key The key where object will be stored. Null if you won't to use this as associative array |
||
26 | * |
||
27 | * @return True when added with success. False if you try to add a duplicate or if the type is not valid |
||
28 | */ |
||
29 | public function add($object, $key = null) |
||
42 | |||
43 | /** |
||
44 | * Offset to set |
||
45 | * |
||
46 | * @link http://php.net/manual/en/arrayaccess.offsetset.php |
||
47 | * |
||
48 | * @param mixed $offset The offset to assign the value to. |
||
49 | * @param mixed $value The value to set. |
||
50 | * |
||
51 | * @throws NoDuplicateAllowedException When try to add an object already added |
||
52 | * @throws \TypeError When try to add type not managed by this collection |
||
53 | * @thows |
||
54 | * @since 5.0.0 |
||
55 | */ |
||
56 | public function offsetSet($offset, $value) |
||
64 | } |
||
65 |