| Total Complexity | 8 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class MetaBoxController |
||
| 10 | { |
||
| 11 | protected MetaBoxService $metaBoxService; |
||
| 12 | |||
| 13 | protected SlugService $slugService; |
||
| 14 | |||
| 15 | public function __construct(MetaBoxService $metaBoxService, SlugService $slugService) |
||
| 16 | { |
||
| 17 | $this->metaBoxService = $metaBoxService; |
||
| 18 | $this->slugService = $slugService; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getMetaBoxBySlugModel(string $model, string $slug, string $lang = 'en'): ?Model |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $model |
||
| 34 | * @param int $modelId |
||
| 35 | * @param string $lang |
||
| 36 | * |
||
| 37 | * @return null|Model |
||
| 38 | */ |
||
| 39 | public function getMetaBoxByModel(string $model, int $modelId, string $lang = 'en'): ?Model |
||
| 54 |