| 1 | <?php |
||
| 13 | final class PropertyHelper |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The wrapped PHP_CodeSniffer_File |
||
| 17 | * |
||
| 18 | * @var File |
||
| 19 | */ |
||
| 20 | private $file; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * PropertyHelper constructor. |
||
| 24 | * |
||
| 25 | * @param File $file The wrapped PHP_CodeSniffer_File |
||
| 26 | */ |
||
| 27 | 109 | public function __construct(File $file) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Determines if the given variable is a property of a class. |
||
| 34 | * |
||
| 35 | * @param int $variablePtr Pointer to the current variable |
||
| 36 | * |
||
| 37 | * @return bool Indicator if the current T_VARIABLE is a property of a class |
||
| 38 | */ |
||
| 39 | 26 | public function isProperty($variablePtr) |
|
| 63 | } |
||
| 64 |