| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 67 | private function getOptions(): array |
||
| 68 | { |
||
| 69 | // Current charset |
||
| 70 | $charset = $this->getParam('charset') ?? self::DEFAULT_CHARSET; |
||
| 71 | |||
| 72 | // Current collation |
||
| 73 | $collation = $this->getParam('collation') ?? self::DEFAULT_COLLATION; |
||
| 74 | |||
| 75 | // Return array of options |
||
| 76 | return [\PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES '$charset' COLLATE '$collation'"]; |
||
| 77 | } |
||
| 80 |