1 | <?php |
||
26 | class MetaProperty implements AnnotationEntityInterface |
||
27 | { |
||
28 | |||
29 | use MetaState; |
||
30 | |||
31 | // <editor-fold defaultstate="collapsed" desc="Access Control"> |
||
32 | /** |
||
33 | * Indicates if field has getter |
||
34 | * @var bool |
||
35 | */ |
||
36 | public $callGet = false; |
||
37 | |||
38 | /** |
||
39 | * Indicates if field has setter |
||
40 | * @var bool |
||
41 | */ |
||
42 | public $callSet = false; |
||
43 | |||
44 | /** |
||
45 | * Indicates if field has either getter or setter |
||
46 | * @var bool |
||
47 | */ |
||
48 | public $direct = false; |
||
49 | |||
50 | /** |
||
51 | * Getter method name |
||
52 | * @var string |
||
53 | */ |
||
54 | public $methodGet = ''; |
||
55 | |||
56 | /** |
||
57 | * Setter method name |
||
58 | * @var string |
||
59 | */ |
||
60 | public $methodSet = ''; |
||
61 | |||
62 | /** |
||
63 | * True if property is static |
||
64 | * @var bool |
||
65 | */ |
||
66 | public $isStatic = false; |
||
67 | // </editor-fold> |
||
68 | // <editor-fold defaultstate="collapsed" desc="Default value and property name"> |
||
69 | /** |
||
70 | * Default value of field as defined in class declaration |
||
71 | * @var mixed |
||
72 | */ |
||
73 | public $default = null; |
||
74 | |||
75 | /** |
||
76 | * Name of a field |
||
77 | * @var string |
||
78 | */ |
||
79 | public $name = ''; |
||
80 | |||
81 | // </editor-fold> |
||
82 | |||
83 | /** |
||
84 | * Class constructor, sets some basic data for field |
||
85 | * @param ReflectionProperty $info |
||
86 | */ |
||
87 | 17 | public function __construct(ReflectionProperty $info = null) |
|
99 | |||
100 | public function __get($name) |
||
104 | |||
105 | } |
||
106 |