| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | trait HasModelRegistry |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ModelRegistry; |
||
| 13 | */ |
||
| 14 | protected $modelRegistry = null; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return ModelRegistry |
||
| 18 | */ |
||
| 19 | 29 | public function getModelRegistry() |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param modelRegistry $modelRegistry |
||
| 29 | */ |
||
| 30 | 4 | public function setModelRegistry(ModelRegistry $modelRegistry) |
|
| 33 | 4 | } |
|
| 34 | |||
| 35 | 1 | protected function initModelRegistry() |
|
| 38 | 1 | } |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return ModelRegistry |
||
| 42 | */ |
||
| 43 | 1 | protected function generateModelRegistry() |
|
| 48 |