1 | <?php |
||
21 | class RoleFilter extends SimpleFilter |
||
22 | { |
||
23 | protected $pattern; |
||
24 | |||
25 | /** |
||
26 | * Initializes filter. |
||
27 | * |
||
28 | * @param string $role Approved role wildcard |
||
29 | */ |
||
30 | 2 | public function __construct($role) |
|
39 | |||
40 | /** |
||
41 | * Checks if Feature matches specified filter. |
||
42 | * |
||
43 | * @param FeatureNode $feature Feature instance |
||
44 | * |
||
45 | * @return Boolean |
||
46 | */ |
||
47 | 2 | public function isFeatureMatch(FeatureNode $feature) |
|
51 | |||
52 | /** |
||
53 | * Checks if scenario or outline matches specified filter. |
||
54 | * |
||
55 | * @param ScenarioInterface $scenario Scenario or Outline node instance |
||
56 | * |
||
57 | * @return false This filter is designed to work only with features |
||
58 | */ |
||
59 | public function isScenarioMatch(ScenarioInterface $scenario) |
||
63 | } |
||
64 |