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; |
||
64 | |||
65 | /** |
||
66 | * @var OdmMetadata |
||
67 | */ |
||
68 | protected $odmMetadata; |
||
69 | |||
70 | /** |
||
71 | * @var PhpcrMetadata |
||
72 | */ |
||
73 | protected $phpcrMetadata; |
||
74 | |||
75 | /** |
||
76 | * @var string |
||
77 | */ |
||
78 | private $application; |
||
79 | |||
80 | public function __construct(BundleInterface $bundle, array $configuration = []) |
||
87 | |||
88 | public function isExtendable(): bool |
||
96 | |||
97 | public function getClass(): string |
||
101 | |||
102 | public function isValid(): bool |
||
106 | |||
107 | public function getExtendedDirectory(): string |
||
111 | |||
112 | public function getVendor(): string |
||
116 | |||
117 | public function getExtendedNamespace(): string |
||
121 | |||
122 | public function getNamespace(): string |
||
126 | |||
127 | /** |
||
128 | * return the bundle name. |
||
129 | * |
||
130 | * @return string return the bundle name |
||
131 | */ |
||
132 | public function getName(): string |
||
136 | |||
137 | /** |
||
138 | * @return string |
||
139 | */ |
||
140 | public function getApplication() |
||
144 | |||
145 | public function getBundle(): BundleInterface |
||
149 | |||
150 | public function getOdmMetadata(): OdmMetadata |
||
154 | |||
155 | public function getOrmMetadata(): OrmMetadata |
||
159 | |||
160 | public function getPhpcrMetadata(): PhpcrMetadata |
||
164 | |||
165 | /** |
||
166 | * build basic information and check if the bundle respect the following convention |
||
167 | * Vendor/BundleNameBundle/VendorBundleNameBundle. |
||
168 | * |
||
169 | * if the bundle does not respect this convention then the easy extends command will ignore |
||
170 | * this bundle |
||
171 | */ |
||
172 | protected function buildInformation(): void |
||
214 | } |
||
215 |