1 | <?php |
||
12 | class MetadataConfigurationFactory |
||
13 | { |
||
14 | /** |
||
15 | * Valid mapping types. |
||
16 | */ |
||
17 | const VALID_MAPPING_TYPES = [ |
||
18 | 'yaml', |
||
19 | 'xml', |
||
20 | 'annotation' |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * Minimum required mapping keys. |
||
25 | */ |
||
26 | const MAPPING_KEYS = [ |
||
27 | 'path', |
||
28 | 'namespace', |
||
29 | 'type' |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | private $mappings; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $type; |
||
41 | |||
42 | /** |
||
43 | * @var bool |
||
44 | */ |
||
45 | private $isDevMode; |
||
46 | |||
47 | /** |
||
48 | * @var null |
||
49 | */ |
||
50 | private $proxyDir; |
||
51 | |||
52 | /** |
||
53 | * @var Cache |
||
54 | */ |
||
55 | private $cache; |
||
56 | |||
57 | /** |
||
58 | * MetadataConfigurationFactory constructor. |
||
59 | * @param array $mappings |
||
60 | * @param $type |
||
61 | * @param bool $isDevMode |
||
62 | * @param null $proxyDir |
||
63 | * @param Cache|null $cache |
||
64 | */ |
||
65 | 6 | public function __construct(array $mappings, $type, $isDevMode = false, $proxyDir = null, Cache $cache = null) |
|
86 | |||
87 | /** |
||
88 | * @return mixed |
||
89 | */ |
||
90 | 4 | public function make() |
|
108 | |||
109 | } |
||
110 |