| Total Complexity | 5 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Result extends Component |
||
| 15 | { |
||
| 16 | protected $_models = []; |
||
| 17 | |||
| 18 | 3 | public function setModels($models) { |
|
| 19 | 3 | $this->_models = $models; |
|
| 20 | 3 | } |
|
| 21 | |||
| 22 | 5 | public function addModel($model) { |
|
| 23 | 5 | $this->_models[] = $model; |
|
| 24 | 5 | } |
|
| 25 | |||
| 26 | 4 | public function getModels() { |
|
| 28 | } |
||
| 29 | |||
| 30 | 4 | public function getModel($key = 0) { |
|
| 36 | } |
||
| 37 | } |