1 | <?php |
||
18 | class BundleMetadata |
||
19 | { |
||
20 | /** |
||
21 | * @var BundleInterface |
||
22 | */ |
||
23 | protected $bundle; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $vendor; |
||
29 | |||
30 | /** |
||
31 | * @var bool |
||
32 | */ |
||
33 | protected $valid = false; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $namespace; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $name; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $extendedDirectory; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | protected $extendedNamespace; |
||
54 | |||
55 | /** |
||
56 | * @var array |
||
57 | */ |
||
58 | protected $configuration = []; |
||
59 | |||
60 | /** |
||
61 | * @var OrmMetadata |
||
62 | */ |
||
63 | protected $ormMetadata = null; |
||
64 | |||
65 | /** |
||
66 | * @var OdmMetadata |
||
67 | */ |
||
68 | protected $odmMetadata = null; |
||
69 | |||
70 | /** |
||
71 | * @var PhpcrMetadata |
||
72 | */ |
||
73 | protected $phpcrMetadata = null; |
||
74 | |||
75 | /** |
||
76 | * @var string |
||
77 | */ |
||
78 | private $application; |
||
79 | |||
80 | /** |
||
81 | * @param BundleInterface $bundle |
||
82 | * @param array $configuration |
||
83 | */ |
||
84 | public function __construct(BundleInterface $bundle, array $configuration = []) |
||
91 | |||
92 | /** |
||
93 | * @return bool |
||
94 | */ |
||
95 | public function isExtendable(): bool |
||
103 | |||
104 | /** |
||
105 | * @return string |
||
106 | */ |
||
107 | public function getClass(): string |
||
111 | |||
112 | /** |
||
113 | * @return bool |
||
114 | */ |
||
115 | public function isValid(): bool |
||
119 | |||
120 | /** |
||
121 | * @return string |
||
122 | */ |
||
123 | public function getExtendedDirectory(): string |
||
127 | |||
128 | /** |
||
129 | * @return string |
||
130 | */ |
||
131 | public function getVendor(): string |
||
135 | |||
136 | /** |
||
137 | * @return string |
||
138 | */ |
||
139 | public function getExtendedNamespace(): string |
||
143 | |||
144 | /** |
||
145 | * @return string |
||
146 | */ |
||
147 | public function getNamespace(): string |
||
151 | |||
152 | /** |
||
153 | * return the bundle name. |
||
154 | * |
||
155 | * @return string return the bundle name |
||
156 | */ |
||
157 | public function getName(): string |
||
161 | |||
162 | /** |
||
163 | * @return string |
||
164 | */ |
||
165 | public function getApplication() |
||
169 | |||
170 | /** |
||
171 | * @return BundleInterface |
||
172 | */ |
||
173 | public function getBundle(): BundleInterface |
||
177 | |||
178 | /** |
||
179 | * @return OdmMetadata |
||
180 | */ |
||
181 | public function getOdmMetadata(): OdmMetadata |
||
185 | |||
186 | /** |
||
187 | * @return OrmMetadata |
||
188 | */ |
||
189 | public function getOrmMetadata(): OrmMetadata |
||
193 | |||
194 | /** |
||
195 | * @return PhpcrMetadata |
||
196 | */ |
||
197 | public function getPhpcrMetadata(): PhpcrMetadata |
||
201 | |||
202 | /** |
||
203 | * build basic information and check if the bundle respect the following convention |
||
204 | * Vendor/BundleNameBundle/VendorBundleNameBundle. |
||
205 | * |
||
206 | * if the bundle does not respect this convention then the easy extends command will ignore |
||
207 | * this bundle |
||
208 | */ |
||
209 | protected function buildInformation(): void |
||
251 | } |
||
252 |