| @@ 98-109 (lines=12) @@ | ||
| 95 | return $simpleStates; |
|
| 96 | } |
|
| 97 | ||
| 98 | protected function getTrans() { |
|
| 99 | $fullTrans = $this->transStorage->loadMultiple(); |
|
| 100 | $simpleTrans = array_map(function ($trans) { |
|
| 101 | return [ |
|
| 102 | 'label' => $trans->label(), |
|
| 103 | 'from' => $trans->getFromState(), |
|
| 104 | 'to' => $trans->getToState(), |
|
| 105 | ]; |
|
| 106 | }, $fullTrans); |
|
| 107 | ||
| 108 | return $simpleTrans; |
|
| 109 | } |
|
| 110 | ||
| 111 | public function report() { |
|
| 112 | $grid = $this->buildGrid(); |
|
| @@ 60-71 (lines=12) @@ | ||
| 57 | return $simpleStates; |
|
| 58 | } |
|
| 59 | ||
| 60 | protected function getTrans() { |
|
| 61 | $fullTrans = $this->transStorage->loadMultiple(); |
|
| 62 | $simpleTrans = array_map(function ($trans) { |
|
| 63 | return [ |
|
| 64 | 'label' => $trans->label(), |
|
| 65 | 'from' => $trans->getFromState(), |
|
| 66 | 'to' => $trans->getToState(), |
|
| 67 | ]; |
|
| 68 | }, $fullTrans); |
|
| 69 | ||
| 70 | return $simpleTrans; |
|
| 71 | } |
|
| 72 | ||
| 73 | public abstract function report(); |
|
| 74 | } |
|