|
6 | 6 | * Holds details of a variable within a scope. |
7 | 7 | */ |
8 | 8 | class VariableInfo { |
9 | | - public $name; |
10 | | - /** |
11 | | - * What scope the variable has: local, param, static, global, bound |
12 | | - */ |
13 | | - public $scopeType; |
14 | | - public $typeHint; |
15 | | - public $passByReference = false; |
16 | | - public $firstDeclared; |
17 | | - public $firstInitialized; |
18 | | - public $firstRead; |
19 | | - public $ignoreUnused = false; |
| 9 | + public $name; |
| 10 | + /** |
| 11 | + * What scope the variable has: local, param, static, global, bound |
| 12 | + */ |
| 13 | + public $scopeType; |
| 14 | + public $typeHint; |
| 15 | + public $passByReference = false; |
| 16 | + public $firstDeclared; |
| 17 | + public $firstInitialized; |
| 18 | + public $firstRead; |
| 19 | + public $ignoreUnused = false; |
20 | 20 |
|
21 | | - static $scopeTypeDescriptions = array( |
22 | | - 'local' => 'variable', |
23 | | - 'param' => 'function parameter', |
24 | | - 'static' => 'static variable', |
25 | | - 'global' => 'global variable', |
26 | | - 'bound' => 'bound variable', |
27 | | - ); |
| 21 | + public static $scopeTypeDescriptions = array( |
| 22 | + 'local' => 'variable', |
| 23 | + 'param' => 'function parameter', |
| 24 | + 'static' => 'static variable', |
| 25 | + 'global' => 'global variable', |
| 26 | + 'bound' => 'bound variable', |
| 27 | + ); |
28 | 28 |
|
29 | | - function __construct($varName) { |
30 | | - $this->name = $varName; |
31 | | - } |
| 29 | + public function __construct($varName) { |
| 30 | + $this->name = $varName; |
| 31 | + } |
32 | 32 | } |
0 commit comments