| Total Complexity | 5 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | trait model { |
||
| 13 | private $services = []; |
||
| 14 | private $component = ''; |
||
| 15 | public function __construct($services, string $component) { |
||
| 16 | $this->services = $services; |
||
| 17 | $this->component = $component; |
||
| 18 | } |
||
| 19 | |||
| 20 | protected function get_services() { |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param $name |
||
| 26 | * @return service|null |
||
| 27 | */ |
||
| 28 | protected function get_service($name) { |
||
| 29 | return isset($this->services[$name]) ? $this->services[$name] : null; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function get_component() { |
||
| 34 | } |
||
| 35 | } |