| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 90% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | trait DynamicBusinessLocator |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @return \Xervice\Core\Business\Model\Facade\FacadeInterface |
||
| 18 | */ |
||
| 19 | 1 | public function getFacade(): FacadeInterface |
|
| 20 | { |
||
| 21 | 1 | return $this->getLocator()->facade(); |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return \Xervice\Core\Business\Model\Factory\FactoryInterface |
||
| 26 | */ |
||
| 27 | 1 | public function getFactory(): FactoryInterface |
|
| 28 | { |
||
| 29 | 1 | return $this->getLocator()->factory(); |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return \Xervice\Core\Business\Model\Locator\Proxy\Business\BusinessLocatorProxy |
||
| 34 | */ |
||
| 35 | 2 | protected function getLocator(): BusinessLocatorProxy |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | * @throws \Xervice\Core\Business\Exception\ServiceNotFoundException |
||
| 43 | */ |
||
| 44 | 2 | protected function getServiceName(): string |
|
| 51 | } |
||
| 52 | } |