| 1 | <?php |
||
| 13 | class AssignRefNew implements AnalyzerPassInterface |
||
| 14 | { |
||
| 15 | use DefaultMetadataPassTrait { |
||
| 16 | DefaultMetadataPassTrait::getMetadata as defaultMetadata; |
||
| 17 | } |
||
| 18 | |||
| 19 | const DESCRIPTION = 'Protection of usage & and new.'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Expr\AssignRef $expr |
||
| 23 | * @param Context $context |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | 2 | public function pass(Expr\AssignRef $expr, Context $context) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | 2 | public function getRegister() |
|
| 50 | } |
||
| 51 |