| 1 | <?php |
||
| 22 | class ReflectionClassNewInstancePatch implements ClassPatchInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Supports ReflectionClass |
||
| 26 | * |
||
| 27 | * @param ClassNode $node |
||
| 28 | * |
||
| 29 | * @return bool |
||
| 30 | */ |
||
| 31 | public function supports(ClassNode $node) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Updates newInstance's first argument to make it optional |
||
| 38 | * |
||
| 39 | * @param ClassNode $node |
||
| 40 | */ |
||
| 41 | public function apply(ClassNode $node) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Returns patch priority, which determines when patch will be applied. |
||
| 50 | * |
||
| 51 | * @return int Priority number (higher = earlier) |
||
| 52 | */ |
||
| 53 | public function getPriority() |
||
| 57 | } |
||
| 58 |