1 | <?php |
||
21 | class KeywordPatch implements ClassPatchInterface |
||
22 | { |
||
23 | /** |
||
24 | * Support any class |
||
25 | * |
||
26 | * @param ClassNode $node |
||
27 | * |
||
28 | * @return boolean |
||
29 | */ |
||
30 | public function supports(ClassNode $node) |
||
34 | |||
35 | /** |
||
36 | * Remove methods that clash with php keywords |
||
37 | * |
||
38 | * @param ClassNode $node |
||
39 | */ |
||
40 | public function apply(ClassNode $node) |
||
48 | |||
49 | /** |
||
50 | * Returns patch priority, which determines when patch will be applied. |
||
51 | * |
||
52 | * @return int Priority number (higher - earlier) |
||
53 | */ |
||
54 | public function getPriority() |
||
58 | |||
59 | /** |
||
60 | * Returns array of php keywords. |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | private function getKeywords() |
||
140 | } |
||
141 |