Sqlite2Dsn   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 8
ccs 2
cts 2
cp 1
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.sqlite2
18
 */
19
class Sqlite2Dsn extends SqliteDsn {
20
  /**
21
   * @return string
22
   */
23 1
  public function toString() : string {
24 1
    return 'sqlite2:' . $this->getPath();
25
  }
26
}
27