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) |
||
69 | |||
70 | /** |
||
71 | * Returns patch priority, which determines when patch will be applied. |
||
72 | * |
||
73 | * @return int Priority number (higher - earlier) |
||
74 | */ |
||
75 | public function getPriority() |
||
79 | |||
80 | /** |
||
81 | * @param ClassNode $node |
||
82 | * @return boolean |
||
83 | */ |
||
84 | private function nodeIsDirectoryIterator(ClassNode $node) |
||
90 | |||
91 | /** |
||
92 | * @param ClassNode $node |
||
93 | * @return boolean |
||
94 | */ |
||
95 | private function nodeIsSplFileObject(ClassNode $node) |
||
101 | } |
||
102 |