Completed
Push — master ( 21b220...14b13a )
by Martin
03:51
created

Sqlite2Dsn::toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the Yep package.
4
 * Copyright (c) 2016 Martin Zeman (Zemistr) (http://www.zemistr.eu)
5
 */
6
7
namespace Yep\Dsn;
8
9
/**
10
 * Class SQLite2Dsn
11
 *
12
 * @package Yep\Dsn
13
 * @author  Martin Zeman (Zemistr) <[email protected]>
14
 *
15
 * PDO_SQLITE
16
 * sqlite2::memory:
17
 * sqlite2:/opt/databases/mydb.sq2
18
 */
19
class Sqlite2Dsn extends SqliteDsn {
20
  public function toString() : string {
21
    return 'sqlite2:' . $this->getPath();
22
  }
23
}
24