| Total Complexity | 7 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class MySqlConnector extends ClientServerDatabaseConnector |
||
| 17 | { |
||
| 18 | protected string $unixSocket = ""; |
||
| 19 | |||
| 20 | protected string $charset = ""; |
||
| 21 | |||
| 22 | public function __construct () |
||
| 23 | { |
||
| 24 | parent::__construct(); |
||
| 25 | |||
| 26 | $this->driver = "pdo_mysql"; |
||
| 27 | |||
| 28 | $this->port = 3306; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getUnixSocket () : string |
||
| 34 | } |
||
| 35 | |||
| 36 | public function setUnixSocket ( string $unixSocket ) : void |
||
| 37 | { |
||
| 38 | $this->unixSocket = $unixSocket; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getCharset () : string |
||
| 42 | { |
||
| 43 | return $this->charset; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function setCharset ( string $charset ) : void |
||
| 47 | { |
||
| 48 | $this->charset = $charset; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getConnectionParameters () : array |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @throws Exception |
||
| 60 | */ |
||
| 61 | public function executeExtraStatements (Connection $connection) : void { |
||
| 65 |