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