1 | <?php |
||
23 | class SplFileInfoPatch implements ClassPatchInterface |
||
24 | { |
||
25 | /** |
||
26 | * Supports everything that extends SplFileInfo. |
||
27 | * |
||
28 | * @param ClassNode $node |
||
29 | * |
||
30 | * @return bool |
||
31 | */ |
||
32 | public function supports(ClassNode $node) |
||
42 | |||
43 | /** |
||
44 | * Updated constructor code to call parent one with dummy file argument. |
||
45 | * |
||
46 | * @param ClassNode $node |
||
47 | */ |
||
48 | public function apply(ClassNode $node) |
||
71 | |||
72 | /** |
||
73 | * Returns patch priority, which determines when patch will be applied. |
||
74 | * |
||
75 | * @return int Priority number (higher - earlier) |
||
76 | */ |
||
77 | public function getPriority() |
||
81 | |||
82 | /** |
||
83 | * @param ClassNode $node |
||
84 | * @return boolean |
||
85 | */ |
||
86 | private function nodeIsDirectoryIterator(ClassNode $node) |
||
93 | |||
94 | /** |
||
95 | * @param ClassNode $node |
||
96 | * @return boolean |
||
97 | */ |
||
98 | private function nodeIsSplFileObject(ClassNode $node) |
||
105 | } |
||
106 |