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