| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class SimpleProvider implements DataProviderInterface |
||
| 9 | { |
||
| 10 | use NamingTrait, ControllerNamingTrait { |
||
| 11 | NamingTrait::getBaseName insteadof ControllerNamingTrait; |
||
| 12 | NamingTrait::getNs insteadof ControllerNamingTrait; |
||
| 13 | ControllerNamingTrait::getNs as getControllerNs; |
||
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $entityClassName; |
||
| 20 | |||
| 21 | public function __construct(string $entityClassName) |
||
| 22 | { |
||
| 23 | $this->entityClassName = $entityClassName; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getRoutesDelegatorNameSpace(): string |
||
| 27 | { |
||
| 28 | return $this->getNs($this->entityClassName); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getControllerNameSpace(): string |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | * @throws \ReflectionException |
||
| 39 | */ |
||
| 40 | public function getShortName(): string |
||
| 43 | } |
||
| 44 | } |
||
| 45 |