Total Complexity | 8 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class SqliteConnector extends EmbeddedDatabaseConnector |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected string $path; |
||
17 | |||
18 | /** |
||
19 | * @var bool |
||
20 | */ |
||
21 | protected bool $memory; |
||
22 | |||
23 | /** |
||
24 | * SqliteConnector constructor. |
||
25 | */ |
||
26 | public function __construct () |
||
27 | { |
||
28 | $this->driver = "pdo_sqlite"; |
||
29 | |||
30 | $this->memory = false; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getPath () : string |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param string $path |
||
43 | */ |
||
44 | public function setPath ( string $path ) : void |
||
45 | { |
||
46 | $this->path = $path; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function isMemory () : bool |
||
53 | { |
||
54 | return $this->memory; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @param bool $memory |
||
59 | */ |
||
60 | public function setMemory ( bool $memory ) : void |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @return array |
||
67 | */ |
||
68 | protected function getConnectionParameters () : array |
||
85 |