1 | <?php |
||
7 | abstract class Base implements FactoryInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var HydratorInterface |
||
11 | */ |
||
12 | private static $hydrator; |
||
13 | |||
14 | /** |
||
15 | * @return array |
||
16 | */ |
||
17 | abstract public function getMappingList(); |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | public function build( |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function rebuild(array $rawData, HydratorInterface $hydrator) |
||
49 | |||
50 | /** |
||
51 | * Return the mapped context class |
||
52 | * |
||
53 | * @param string $contextName |
||
54 | * @return string |
||
55 | */ |
||
56 | protected function getMappedContext($contextName) |
||
63 | |||
64 | /** |
||
65 | * Test a mapped context |
||
66 | * |
||
67 | * @param string $contextName |
||
68 | * @return void |
||
69 | */ |
||
70 | protected function checkMappedContext($contextName) |
||
76 | |||
77 | /** |
||
78 | * @return HydratorInterface |
||
79 | */ |
||
80 | public function getHydrator() |
||
88 | |||
89 | /** |
||
90 | * @param HydratorInterface $hydrator |
||
91 | * @return Base |
||
92 | */ |
||
93 | public function setHydrator(HydratorInterface $hydrator) |
||
98 | } |
||
99 |