Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | abstract class AbstractMenuPage extends AbstractAdminPage |
||
10 | { |
||
11 | protected string $menuTitle = ''; |
||
12 | |||
13 | protected int $position; |
||
14 | |||
15 | public function __construct( |
||
16 | string $pageTitle, |
||
17 | string $menuTitle, |
||
18 | string $menuSlug, |
||
19 | int $position, |
||
20 | AdminPageLayoutInterface $layout, |
||
21 | LoadErrorPageInterface $loadErrorPage, |
||
22 | ?string $capability = null, |
||
23 | ?AdminTitleResolverInterface $adminTitleResolver = null |
||
24 | ) { |
||
25 | $this->menuTitle = $menuTitle; |
||
26 | $this->position = $position; |
||
27 | |||
28 | parent::__construct( |
||
29 | $pageTitle, |
||
30 | $menuSlug, |
||
31 | $layout, |
||
32 | $loadErrorPage, |
||
33 | $capability, |
||
34 | $adminTitleResolver |
||
35 | ); |
||
36 | } |
||
37 | |||
38 | public function getMenuTitle(): string |
||
39 | { |
||
40 | return $this->menuTitle; |
||
41 | } |
||
42 | |||
43 | public function getPosition(): int |
||
46 | } |
||
47 | } |
||
48 |