1 | <?php |
||
21 | class Constant extends ElementAbstract implements ConstantInterface |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * constant's name |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $name; |
||
29 | |||
30 | /** |
||
31 | * @var mixed |
||
32 | */ |
||
33 | protected $value; |
||
34 | |||
35 | /** |
||
36 | * Alloweds php types. |
||
37 | * @var ArrayCollection |
||
38 | */ |
||
39 | protected $allowedTypes; |
||
40 | |||
41 | /** |
||
42 | * Documentation Block |
||
43 | * @var DocBlockInterface |
||
44 | */ |
||
45 | protected $docBlock; |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 11 | public function init() |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 7 | public function setName($name) |
|
64 | |||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 7 | public function getName() |
|
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 5 | public function setValue($value) |
|
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 3 | public function getValue() |
|
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | 1 | public function setDescription($description) |
|
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | 2 | public function getDescription() |
|
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | 4 | public function getDocBlock() |
|
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | * @return \ClassGeneration\Constant |
||
124 | */ |
||
125 | 11 | public function setDocBlock(DocBlockInterface $docBlock) |
|
131 | |||
132 | /** |
||
133 | * {@inheritdoc} |
||
134 | */ |
||
135 | 2 | public function toString() |
|
146 | } |
||
147 |