1 | <?php |
||
11 | class DBALConnection extends AbstractOptions |
||
12 | { |
||
13 | /** |
||
14 | * Set the configuration key for the Configuration. Configuration key |
||
15 | * is assembled as "doctrine.configuration.{key}" and pulled from |
||
16 | * service locator. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $configuration = 'orm_default'; |
||
21 | |||
22 | /** |
||
23 | * Set the eventmanager key for the EventManager. EventManager key |
||
24 | * is assembled as "doctrine.eventmanager.{key}" and pulled from |
||
25 | * service locator. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $eventmanager = 'orm_default'; |
||
30 | |||
31 | /** |
||
32 | * Set the PDO instance, if any, to use. If a string is set |
||
33 | * then the alias is pulled from the service locator. |
||
34 | * |
||
35 | * @var null|string|\PDO |
||
36 | */ |
||
37 | protected $pdo = null; |
||
38 | |||
39 | /** |
||
40 | * Setting the driver is deprecated. You should set the |
||
41 | * driver class directly instead. |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $driverClass = Driver::class; |
||
46 | |||
47 | /** |
||
48 | * Set the wrapper class for the driver. In general, this should not |
||
49 | * need to be changed. |
||
50 | * |
||
51 | * @var string|null |
||
52 | */ |
||
53 | protected $wrapperClass = null; |
||
54 | |||
55 | /** |
||
56 | * Driver specific connection parameters. |
||
57 | * |
||
58 | * @var array |
||
59 | */ |
||
60 | protected $params = []; |
||
61 | |||
62 | /** |
||
63 | * @var array |
||
64 | */ |
||
65 | protected $doctrineTypeMappings = []; |
||
66 | |||
67 | /** |
||
68 | * @var array |
||
69 | */ |
||
70 | protected $doctrineCommentedTypes = []; |
||
71 | |||
72 | /** |
||
73 | * @var bool |
||
74 | */ |
||
75 | protected $useSavepoints = false; |
||
76 | |||
77 | /** |
||
78 | * @param string $configuration |
||
79 | 72 | */ |
|
80 | public function setConfiguration($configuration) |
||
84 | |||
85 | /** |
||
86 | * @return string |
||
87 | 72 | */ |
|
88 | public function getConfiguration() |
||
92 | |||
93 | /** |
||
94 | * @param string $eventmanager |
||
95 | 72 | */ |
|
96 | public function setEventmanager($eventmanager) |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | 72 | */ |
|
104 | public function getEventmanager() |
||
108 | |||
109 | /** |
||
110 | * @param array $params |
||
111 | 72 | */ |
|
112 | public function setParams($params) |
||
116 | |||
117 | /** |
||
118 | * @return array |
||
119 | 72 | */ |
|
120 | public function getParams() |
||
124 | |||
125 | /** |
||
126 | * @param array $doctrineTypeMappings |
||
127 | * @return \DoctrineORMModule\Options\DBALConnection |
||
128 | */ |
||
129 | public function setDoctrineTypeMappings($doctrineTypeMappings) |
||
135 | |||
136 | /** |
||
137 | * |
||
138 | * @return array |
||
139 | 72 | */ |
|
140 | public function getDoctrineTypeMappings() |
||
144 | |||
145 | /** |
||
146 | * @param array $doctrineCommentedTypes |
||
147 | 2 | */ |
|
148 | public function setDoctrineCommentedTypes(array $doctrineCommentedTypes) |
||
152 | |||
153 | /** |
||
154 | * @return array |
||
155 | 74 | */ |
|
156 | public function getDoctrineCommentedTypes() |
||
160 | |||
161 | /** |
||
162 | * @param null|string $driverClass |
||
163 | 72 | */ |
|
164 | public function setDriverClass($driverClass) |
||
168 | |||
169 | /** |
||
170 | * @return null|string |
||
171 | 72 | */ |
|
172 | public function getDriverClass() |
||
176 | |||
177 | /** |
||
178 | * @param null|\PDO|string $pdo |
||
179 | */ |
||
180 | public function setPdo($pdo) |
||
184 | |||
185 | /** |
||
186 | * @return null|\PDO|string |
||
187 | 72 | */ |
|
188 | public function getPdo() |
||
192 | |||
193 | /** |
||
194 | * @param string $wrapperClass |
||
195 | */ |
||
196 | public function setWrapperClass($wrapperClass) |
||
200 | |||
201 | /** |
||
202 | * @return string |
||
203 | 72 | */ |
|
204 | public function getWrapperClass() |
||
208 | |||
209 | /** |
||
210 | * @return bool |
||
211 | */ |
||
212 | public function useSavepoints() |
||
216 | |||
217 | /** |
||
218 | * @param bool $useSavepoints |
||
219 | */ |
||
220 | public function setUseSavepoints($useSavepoints) |
||
224 | } |
||
225 |