| 1 | <?php |
||
| 14 | class DBALConfiguration extends AbstractOptions |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Set the cache key for the result cache. Cache key |
||
| 18 | * is assembled as "doctrine.cache.{key}" and pulled from |
||
| 19 | * service locator. |
||
| 20 | */ |
||
| 21 | protected string $resultCache = 'array'; |
||
|
|
|||
| 22 | |||
| 23 | /** |
||
| 24 | * Set the class name of the SQL Logger, or null, to disable. |
||
| 25 | */ |
||
| 26 | protected string $sqlLogger = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Keys must be the name of the type identifier and value is |
||
| 30 | * the class name of the Type |
||
| 31 | * |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | protected array $types = []; |
||
| 35 | |||
| 36 | public function setResultCache(string $resultCache) : void |
||
| 37 | { |
||
| 38 | $this->resultCache = $resultCache; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getResultCache() : string |
||
| 42 | { |
||
| 43 | return 'doctrine.cache.' . $this->resultCache; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function setSqlLogger(string $sqlLogger) : void |
||
| 47 | { |
||
| 48 | $this->sqlLogger = $sqlLogger; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getSqlLogger() : string |
||
| 52 | { |
||
| 53 | return $this->sqlLogger; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param array $types |
||
| 58 | */ |
||
| 59 | public function setTypes(array $types) : void |
||
| 60 | { |
||
| 61 | $this->types = $types; |
||
| 62 | } |
||
| 63 | |||
| 64 | public function getTypes() : string |
||
| 65 | { |
||
| 66 | return $this->types; |
||
| 67 | 86 | } |
|
| 68 | } |
||
| 69 |