| @@ 67-77 (lines=11) @@ | ||
| 64 | /** |
|
| 65 | * @return ColumnInterface[] |
|
| 66 | */ |
|
| 67 | public function addedColumns(): array |
|
| 68 | { |
|
| 69 | $difference = []; |
|
| 70 | foreach ($this->current->getColumns() as $name => $column) { |
|
| 71 | if (!$this->initial->knowsColumn($name)) { |
|
| 72 | $difference[] = $column; |
|
| 73 | } |
|
| 74 | } |
|
| 75 | ||
| 76 | return $difference; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @return ColumnInterface[] |
|
| @@ 82-92 (lines=11) @@ | ||
| 79 | /** |
|
| 80 | * @return ColumnInterface[] |
|
| 81 | */ |
|
| 82 | public function droppedColumns(): array |
|
| 83 | { |
|
| 84 | $difference = []; |
|
| 85 | foreach ($this->initial->getColumns() as $name => $column) { |
|
| 86 | if (!$this->current->knowsColumn($name)) { |
|
| 87 | $difference[] = $column; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||
| 91 | return $difference; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * Returns array where each value contain current and initial element state. |
|