1 | <?php |
||
31 | class DBALConnection extends AbstractOptions |
||
32 | { |
||
33 | /** |
||
34 | * Set the configuration key for the Configuration. Configuration key |
||
35 | * is assembled as "doctrine.configuration.{key}" and pulled from |
||
36 | * service locator. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $configuration = 'orm_default'; |
||
41 | |||
42 | /** |
||
43 | * Set the eventmanager key for the EventManager. EventManager key |
||
44 | * is assembled as "doctrine.eventmanager.{key}" and pulled from |
||
45 | * service locator. |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $eventManager = 'orm_default'; |
||
50 | |||
51 | /** |
||
52 | * Set the PDO instance, if any, to use. If a string is set |
||
53 | * then the alias is pulled from the service locator. |
||
54 | * |
||
55 | * @var null|string|\PDO |
||
56 | */ |
||
57 | protected $pdo = null; |
||
58 | |||
59 | /** |
||
60 | * Setting the driver is deprecated. You should set the |
||
61 | * driver class directly instead. |
||
62 | * |
||
63 | * @var string |
||
64 | */ |
||
65 | protected $driverClass = 'Doctrine\DBAL\Driver\PDOMySql\Driver'; |
||
66 | |||
67 | /** |
||
68 | * Set the wrapper class for the driver. In general, this should not |
||
69 | * need to be changed. |
||
70 | * |
||
71 | * @var string|null |
||
72 | */ |
||
73 | protected $wrapperClass = null; |
||
74 | |||
75 | /** |
||
76 | * Driver specific connection parameters. |
||
77 | * |
||
78 | * @var array |
||
79 | */ |
||
80 | protected $params = []; |
||
81 | |||
82 | /** |
||
83 | * @var array |
||
84 | */ |
||
85 | protected $doctrineTypeMappings = []; |
||
86 | |||
87 | /** |
||
88 | * @var array |
||
89 | */ |
||
90 | protected $doctrineCommentedTypes = []; |
||
91 | |||
92 | /** |
||
93 | * @param string $configuration |
||
94 | * @return $this |
||
95 | */ |
||
96 | public function setConfiguration($configuration) |
||
102 | |||
103 | /** |
||
104 | * @return string |
||
105 | */ |
||
106 | public function getConfiguration() |
||
110 | |||
111 | /** |
||
112 | * @param string $eventManager |
||
113 | * @return $this |
||
114 | */ |
||
115 | public function setEventManager($eventManager) |
||
121 | |||
122 | /** |
||
123 | * @return string |
||
124 | */ |
||
125 | public function getEventManager() |
||
129 | |||
130 | /** |
||
131 | * @param array $params |
||
132 | * @return $this |
||
133 | */ |
||
134 | public function setParams($params) |
||
140 | |||
141 | /** |
||
142 | * @return array |
||
143 | */ |
||
144 | public function getParams() |
||
148 | |||
149 | /** |
||
150 | * @param array $doctrineTypeMappings |
||
151 | * @return $this |
||
152 | */ |
||
153 | public function setDoctrineTypeMappings($doctrineTypeMappings) |
||
159 | |||
160 | /** |
||
161 | * |
||
162 | * @return array |
||
163 | */ |
||
164 | public function getDoctrineTypeMappings() |
||
168 | |||
169 | /** |
||
170 | * @param array $doctrineCommentedTypes |
||
171 | * @return $this |
||
172 | */ |
||
173 | public function setDoctrineCommentedTypes(array $doctrineCommentedTypes) |
||
179 | |||
180 | /** |
||
181 | * @return array |
||
182 | */ |
||
183 | public function getDoctrineCommentedTypes() |
||
187 | |||
188 | /** |
||
189 | * @param null|string $driverClass |
||
190 | * @return $this |
||
191 | */ |
||
192 | public function setDriverClass($driverClass) |
||
198 | |||
199 | /** |
||
200 | * @return null|string |
||
201 | */ |
||
202 | public function getDriverClass() |
||
206 | |||
207 | /** |
||
208 | * @param null|\PDO|string $pdo |
||
209 | * @return $this |
||
210 | */ |
||
211 | public function setPdo($pdo) |
||
217 | |||
218 | /** |
||
219 | * @return null|\PDO|string |
||
220 | */ |
||
221 | public function getPdo() |
||
225 | |||
226 | /** |
||
227 | * @param string $wrapperClass |
||
228 | * @return $this |
||
229 | */ |
||
230 | public function setWrapperClass($wrapperClass) |
||
236 | |||
237 | /** |
||
238 | * @return string |
||
239 | */ |
||
240 | public function getWrapperClass() |
||
244 | } |
||
245 |