1 | <?php |
||
17 | final class Filter implements FilterInterface |
||
18 | { |
||
19 | const TYPE_BEFORE = 'before'; |
||
20 | |||
21 | const TYPE_AFTER = 'after'; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $type; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $method; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $service; |
||
37 | |||
38 | /** |
||
39 | * Filter constructor. |
||
40 | * |
||
41 | * @param array $params |
||
42 | */ |
||
43 | public function __construct(array $params) |
||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getType() |
||
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | public function getMethod(): string |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getService(): string |
||
79 | } |
||
|
|||
80 |
This check marks files that end in a newline character, i.e. an empy line.