| Total Complexity | 7 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | class ProductSection extends AbstractSection |
||
| 24 | { |
||
| 25 | public function __construct(private ProductRepositoryInterface $productRepository) |
||
| 26 | { |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getUrlTag(): string |
||
| 30 | { |
||
| 31 | return 'billing-product'; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getRepository(): CrudRepositoryInterface |
||
| 35 | { |
||
| 36 | return $this->productRepository; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getEntity() |
||
| 40 | { |
||
| 41 | return new Product(); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getMenuSection(): string |
||
| 45 | { |
||
| 46 | return 'Billing'; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getMenuName(): string |
||
| 50 | { |
||
| 51 | return 'Product'; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function buildEntityForm(EntityForm $entityForm): EntityForm |
||
| 62 | } |
||
| 63 | } |
||
| 64 |