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

Sqlite2Dsn   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toString() 0 3 1
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