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