1 | <?php |
||
15 | class DBALConnection extends AbstractOptions |
||
16 | { |
||
17 | /** |
||
18 | * Set the configuration key for the Configuration. Configuration key |
||
19 | * is assembled as "doctrine.configuration.{key}" and pulled from |
||
20 | * service locator. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $configuration = 'orm_default'; |
||
25 | |||
26 | /** |
||
27 | * Set the eventmanager key for the EventManager. EventManager key |
||
28 | * is assembled as "doctrine.eventmanager.{key}" and pulled from |
||
29 | * service locator. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $eventmanager = 'orm_default'; |
||
34 | |||
35 | /** |
||
36 | * Set the PDO instance, if any, to use. If a string is set |
||
37 | * then the alias is pulled from the service locator. |
||
38 | * |
||
39 | * @var null|string|\PDO |
||
40 | */ |
||
41 | protected $pdo = null; |
||
42 | |||
43 | /** |
||
44 | * Setting the driver is deprecated. You should set the |
||
45 | * driver class directly instead. |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $driverClass = Driver::class; |
||
50 | |||
51 | /** |
||
52 | * Set the wrapper class for the driver. In general, this should not |
||
53 | * need to be changed. |
||
54 | * |
||
55 | * @var string|null |
||
56 | */ |
||
57 | protected $wrapperClass = null; |
||
58 | |||
59 | /** |
||
60 | * Driver specific connection parameters. |
||
61 | * |
||
62 | * @var array |
||
63 | */ |
||
64 | protected $params = []; |
||
65 | |||
66 | /** |
||
67 | * @var array |
||
68 | */ |
||
69 | protected $doctrineTypeMappings = []; |
||
70 | |||
71 | /** |
||
72 | * @var array |
||
73 | */ |
||
74 | protected $doctrineCommentedTypes = []; |
||
75 | |||
76 | /** |
||
77 | * @var bool |
||
78 | */ |
||
79 | protected $useSavepoints = false; |
||
80 | |||
81 | /** |
||
82 | * @param string $configuration |
||
83 | */ |
||
84 | 72 | public function setConfiguration($configuration) |
|
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | 72 | public function getConfiguration() |
|
96 | |||
97 | /** |
||
98 | * @param string $eventmanager |
||
99 | */ |
||
100 | 72 | public function setEventmanager($eventmanager) |
|
104 | |||
105 | /** |
||
106 | * @return string |
||
107 | */ |
||
108 | 72 | public function getEventmanager() |
|
112 | |||
113 | /** |
||
114 | * @param array $params |
||
115 | */ |
||
116 | 72 | public function setParams($params) |
|
120 | |||
121 | /** |
||
122 | * @return array |
||
123 | */ |
||
124 | 72 | public function getParams() |
|
128 | |||
129 | /** |
||
130 | * @param array $doctrineTypeMappings |
||
131 | * @return \DoctrineORMModule\Options\DBALConnection |
||
132 | */ |
||
133 | public function setDoctrineTypeMappings($doctrineTypeMappings) |
||
139 | |||
140 | /** |
||
141 | * |
||
142 | * @return array |
||
143 | */ |
||
144 | 72 | public function getDoctrineTypeMappings() |
|
148 | |||
149 | /** |
||
150 | * @param array $doctrineCommentedTypes |
||
151 | */ |
||
152 | 2 | public function setDoctrineCommentedTypes(array $doctrineCommentedTypes) |
|
156 | |||
157 | /** |
||
158 | * @return array |
||
159 | */ |
||
160 | 74 | public function getDoctrineCommentedTypes() |
|
164 | |||
165 | /** |
||
166 | * @param null|string $driverClass |
||
167 | */ |
||
168 | 72 | public function setDriverClass($driverClass) |
|
172 | |||
173 | /** |
||
174 | * @return null|string |
||
175 | */ |
||
176 | 72 | public function getDriverClass() |
|
180 | |||
181 | /** |
||
182 | * @param null|\PDO|string $pdo |
||
183 | */ |
||
184 | public function setPdo($pdo) |
||
188 | |||
189 | /** |
||
190 | * @return null|\PDO|string |
||
191 | */ |
||
192 | 72 | public function getPdo() |
|
196 | |||
197 | /** |
||
198 | * @param string $wrapperClass |
||
199 | */ |
||
200 | public function setWrapperClass($wrapperClass) |
||
204 | |||
205 | /** |
||
206 | * @return string |
||
207 | */ |
||
208 | 72 | public function getWrapperClass() |
|
212 | |||
213 | /** |
||
214 | * @return bool |
||
215 | */ |
||
216 | 72 | public function useSavepoints() |
|
220 | |||
221 | /** |
||
222 | * @param bool $useSavepoints |
||
223 | */ |
||
224 | public function setUseSavepoints($useSavepoints) |
||
228 | } |
||
229 |