@@ 75-79 (lines=5) @@ | ||
72 | throw new NoDuplicateAllowedException("Object already inserted"); |
|
73 | } |
|
74 | ||
75 | if (is_null($offset)) { |
|
76 | $this->data[] = $value; |
|
77 | } else { |
|
78 | $this->data[$offset] = $value; |
|
79 | } |
|
80 | } |
|
81 | ||
82 | /** |
@@ 119-123 (lines=5) @@ | ||
116 | throw new \TypeError("Object cannot be added. Type not managed by this collection"); |
|
117 | } |
|
118 | ||
119 | if (is_null($offset)) { |
|
120 | $this->data[] = $value; |
|
121 | } else { |
|
122 | $this->data[$offset] = $value; |
|
123 | } |
|
124 | } |
|
125 | ||
126 | /** |