| Conditions | 5 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 17 | public function getIdentifiers($onlyUnloaded = true) |
||
| 18 | { |
||
| 19 | $identifiers = []; |
||
| 20 | foreach ($this->models as $model) { |
||
| 21 | if (!$model instanceof Model) { |
||
| 22 | continue; |
||
| 23 | } |
||
| 24 | if (true === $onlyUnloaded && true === $model->getState()->is('empty')) { |
||
| 25 | $identifiers[] = $model->getId(); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | return $identifiers; |
||
| 29 | } |
||
| 30 | |||
| 39 |