| Total Complexity | 8 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class AdminCondition implements ConditionInterface { |
||
| 20 | /** |
||
| 21 | * Menu slug. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $menu = ''; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Parent menu slug. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $parent_menu = ''; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Constructor |
||
| 36 | * |
||
| 37 | * @codeCoverageIgnore |
||
| 38 | * @param string $menu |
||
| 39 | * @param string $parent_menu |
||
| 40 | */ |
||
| 41 | public function __construct( $menu, $parent_menu = '' ) { |
||
| 42 | $this->menu = $menu; |
||
| 43 | $this->parent_menu = $parent_menu; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Check if the admin page requirement matches. |
||
| 48 | * |
||
| 49 | * @return boolean |
||
| 50 | */ |
||
| 51 | protected function isAdminPage() { |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritDoc} |
||
| 57 | */ |
||
| 58 | public function isSatisfied( RequestInterface $request ) { |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * {@inheritDoc} |
||
| 74 | */ |
||
| 75 | public function getArguments( RequestInterface $request ) { |
||
| 79 |