@@ 141-151 (lines=11) @@ | ||
138 | /** |
|
139 | * @return AbstractIndex[] |
|
140 | */ |
|
141 | public function addedIndexes(): array |
|
142 | { |
|
143 | $difference = []; |
|
144 | foreach ($this->current->getIndexes() as $name => $index) { |
|
145 | if (!$this->initial->knowsIndex($name)) { |
|
146 | $difference[] = $index; |
|
147 | } |
|
148 | } |
|
149 | ||
150 | return $difference; |
|
151 | } |
|
152 | ||
153 | /** |
|
154 | * @return AbstractIndex[] |
|
@@ 156-166 (lines=11) @@ | ||
153 | /** |
|
154 | * @return AbstractIndex[] |
|
155 | */ |
|
156 | public function droppedIndexes(): array |
|
157 | { |
|
158 | $difference = []; |
|
159 | foreach ($this->initial->getIndexes() as $name => $index) { |
|
160 | if (!$this->current->knowsIndex($name)) { |
|
161 | $difference[] = $index; |
|
162 | } |
|
163 | } |
|
164 | ||
165 | return $difference; |
|
166 | } |
|
167 | ||
168 | /** |
|
169 | * Returns array where each value contain current and initial element state. |