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