| 1 | <?php |
||
| 15 | abstract class Variable extends Def\Definition { |
||
| 16 | const CLASS_TYPE = "class"; |
||
| 17 | const FILE_TYPE = "file"; |
||
| 18 | const GLOBAL_TYPE = "global"; |
||
| 19 | const FUNCTION_TYPE = "function"; |
||
| 20 | const METHOD_TYPE = "method"; |
||
| 21 | const LANGUAGE_CONSTRUCT_TYPE = "language_construct"; |
||
| 22 | |||
| 23 | 67 | static public function is_type($t) { |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | private $name; |
||
| 39 | |||
| 40 | 341 | public function __construct($name) { |
|
| 44 | |||
| 45 | 50 | public function name() { |
|
| 48 | |||
| 49 | public function _with() { |
||
| 52 | |||
| 53 | public function cannot() { |
||
| 56 | |||
| 57 | public function must() { |
||
| 60 | } |
||
| 61 | |||
| 62 |