@@ 66-74 (lines=9) @@ | ||
63 | /** |
|
64 | * @inheritdoc |
|
65 | */ |
|
66 | public function remove(Equatable $value) |
|
67 | { |
|
68 | $key = $this->search($value); |
|
69 | $items = $this->items; |
|
70 | ||
71 | unset($items[$key]); |
|
72 | ||
73 | return new static($items); |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * @inheritdoc |
@@ 62-70 (lines=9) @@ | ||
59 | /** |
|
60 | * @inheritdoc |
|
61 | */ |
|
62 | public function remove(Equatable $value) |
|
63 | { |
|
64 | $key = $this->search($value); |
|
65 | $items = $this->items; |
|
66 | ||
67 | unset($items[$key]); |
|
68 | ||
69 | return new static($items); |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * @inheritdoc |