| @@ 87-97 (lines=11) @@ | ||
| 84 | /** |
|
| 85 | * @return AbstractColumn[] |
|
| 86 | */ |
|
| 87 | public function addedColumns(): array |
|
| 88 | { |
|
| 89 | $difference = []; |
|
| 90 | foreach ($this->current->getColumns() as $name => $column) { |
|
| 91 | if (!$this->initial->knowsColumn($name)) { |
|
| 92 | $difference[] = $column; |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| 96 | return $difference; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * @return AbstractColumn[] |
|
| @@ 102-112 (lines=11) @@ | ||
| 99 | /** |
|
| 100 | * @return AbstractColumn[] |
|
| 101 | */ |
|
| 102 | public function droppedColumns(): array |
|
| 103 | { |
|
| 104 | $difference = []; |
|
| 105 | foreach ($this->initial->getColumns() as $name => $column) { |
|
| 106 | if (!$this->current->knowsColumn($name)) { |
|
| 107 | $difference[] = $column; |
|
| 108 | } |
|
| 109 | } |
|
| 110 | ||
| 111 | return $difference; |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * Returns array where each value contain current and initial element state. |
|