@@ 109-117 (lines=9) @@ | ||
106 | /** |
|
107 | * {@inheritdoc} |
|
108 | */ |
|
109 | public function flip() |
|
110 | { |
|
111 | $collection = Factory::create([], static::class); |
|
112 | foreach ($this->items as $key => $value) { |
|
113 | $collection->set($value, $key); |
|
114 | } |
|
115 | ||
116 | return $collection; |
|
117 | } |
|
118 | ||
119 | /** |
|
120 | * {@inheritdoc} |
|
@@ 122-130 (lines=9) @@ | ||
119 | /** |
|
120 | * {@inheritdoc} |
|
121 | */ |
|
122 | public function values() |
|
123 | { |
|
124 | $collection = Factory::create([], static::class); |
|
125 | foreach ($this->items as $value) { |
|
126 | $collection->add($value); |
|
127 | } |
|
128 | ||
129 | return $collection; |
|
130 | } |
|
131 | ||
132 | /** |
|
133 | * {@inheritdoc} |
|
@@ 135-143 (lines=9) @@ | ||
132 | /** |
|
133 | * {@inheritdoc} |
|
134 | */ |
|
135 | public function keys() |
|
136 | { |
|
137 | $collection = Factory::create([], static::class); |
|
138 | foreach ($this->items as $key => $value) { |
|
139 | $collection->add($key); |
|
140 | } |
|
141 | ||
142 | return $collection; |
|
143 | } |
|
144 | ||
145 | /** |
|
146 | * {@inheritdoc} |