1 | <?php |
||
13 | final class ClassMetadataFactory |
||
14 | { |
||
15 | /** |
||
16 | * @var ModelConfigurationDriverInterface |
||
17 | */ |
||
18 | private $driver; |
||
19 | |||
20 | /** |
||
21 | * @var Filesystem |
||
22 | */ |
||
23 | private $filesystem; |
||
24 | |||
25 | /** |
||
26 | * @var bool |
||
27 | */ |
||
28 | private $isCacheEnabled; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $cacheFile; |
||
34 | |||
35 | /** |
||
36 | * Constructor. |
||
37 | * |
||
38 | * @param ModelConfigurationDriverInterface $driver |
||
39 | * @param Filesystem $filesystem |
||
40 | * @param bool $isCacheEnabled |
||
41 | * @param string $cacheFile |
||
42 | */ |
||
43 | 17 | public function __construct(ModelConfigurationDriverInterface $driver, Filesystem $filesystem, $isCacheEnabled, $cacheFile) |
|
50 | |||
51 | /** |
||
52 | * Creates the class metadata object. |
||
53 | * |
||
54 | * @return ClassMetadata |
||
55 | */ |
||
56 | 17 | public function createMetadataObject() |
|
60 | |||
61 | /** |
||
62 | * Resolves the class properties. |
||
63 | * |
||
64 | * @return \ReflectionProperty[] |
||
65 | */ |
||
66 | 17 | private function resolveProperties() |
|
74 | |||
75 | /** |
||
76 | * Fetches the data from the cache. |
||
77 | * |
||
78 | * @return \ReflectionProperty[] |
||
79 | */ |
||
80 | 9 | private function resolveCache() |
|
91 | } |
||
92 |