| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class HasManyCached extends HasOneOrMany |
||
| 10 | { |
||
| 11 | protected $foreignKey; |
||
| 12 | protected $ownerKey; |
||
| 13 | protected $related; |
||
| 14 | |||
| 15 | public function __construct($related, Model $parent, $foreignKey = null, $ownerKey = null) |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getResults() |
||
| 28 | } |
||
| 29 | |||
| 30 | public function initRelation(array $models, $relation) |
||
| 32 | } |
||
| 33 | |||
| 34 | public function match(array $models, Collection $results, $relation) |
||
| 38 |