1 | <?php |
||
33 | abstract class AbstractFactory implements FactoryInterface |
||
34 | { |
||
35 | /** |
||
36 | * Would normally be set to orm | odm |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $mappingType; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $name; |
||
46 | |||
47 | /** |
||
48 | * @var \Zend\Stdlib\AbstractOptions |
||
49 | */ |
||
50 | protected $options; |
||
51 | |||
52 | /** |
||
53 | * @param string $name |
||
54 | */ |
||
55 | 12 | public function __construct($name) |
|
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | 12 | public function getName() |
|
67 | |||
68 | /** |
||
69 | * Would normally be set to orm | odm |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | 12 | public function getMappingType() |
|
77 | |||
78 | /** |
||
79 | * Gets options from configuration based on name. |
||
80 | * |
||
81 | * @param ServiceLocatorInterface $sl |
||
82 | * @param string $key |
||
83 | * @param null|string $name |
||
84 | * @return \Zend\Stdlib\AbstractOptions |
||
85 | * @throws \RuntimeException |
||
86 | */ |
||
87 | 12 | public function getOptions(ServiceLocatorInterface $sl, $key, $name = null) |
|
114 | |||
115 | /** |
||
116 | * Get the class name of the options associated with this factory. |
||
117 | * |
||
118 | * @abstract |
||
119 | * @return string |
||
120 | */ |
||
121 | abstract public function getOptionsClass(); |
||
122 | } |
||
123 |