1 | <?php |
||
11 | trait ImmutableCollectionTrait |
||
12 | { |
||
13 | /** |
||
14 | * add is not supported by immutable objects. |
||
15 | * @param multitype $element |
||
16 | * @throws UnsupportedOperationException |
||
17 | */ |
||
18 | public function add($element) |
||
22 | |||
23 | /** |
||
24 | * addAll is not supported by immutable objects. |
||
25 | * @param CollectionInterface $collection |
||
26 | * @throws UnsupportedOperationException |
||
27 | */ |
||
28 | public function addAll(CollectionInterface $collection) |
||
32 | |||
33 | /** |
||
34 | * clear is not supported by immutable objects. |
||
35 | * @throws UnsupportedOperationException |
||
36 | */ |
||
37 | public function clear() |
||
41 | |||
42 | /** |
||
43 | * Remove is not supported by immutable objects. |
||
44 | * @param multitype $element |
||
45 | * @throws UnsupportedOperationException |
||
46 | */ |
||
47 | public function remove($element) |
||
51 | |||
52 | /** |
||
53 | * removeAll is not supported by immutable objects. |
||
54 | * @param CollectionInterface $collection |
||
55 | */ |
||
56 | public function removeAll(CollectionInterface $collection) |
||
60 | |||
61 | /** |
||
62 | * retainAll is not supported by immutable objects. |
||
63 | * @param CollectionInterface $collection |
||
64 | * @throws UnsupportedOperationException |
||
65 | */ |
||
66 | public function retainAll(CollectionInterface $collection) |
||
70 | |||
71 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.