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