StatementAbstract   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * Class StatementAbstract
4
 *
5
 * @filesource   StatementAbstract.php
6
 * @created      28.06.2017
7
 * @package      chillerlan\Database\Query
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2017 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\Database\Query;
14
15
use chillerlan\Database\Dialects\Dialect;
16
use chillerlan\Database\Drivers\DriverInterface;
17
use Psr\Log\{
18
	LoggerAwareInterface, LoggerAwareTrait, LoggerInterface
19
};
20
21
abstract class StatementAbstract implements Statement, LoggerAwareInterface{
22
	use LoggerAwareTrait;
23
24
	protected DriverInterface $db;
25
	protected Dialect $dialect;
26
27
	/** @inheritdoc */
28
	public function __construct(DriverInterface $db, Dialect $dialect, LoggerInterface $logger = null){
29
		$this->db      = $db;
30
		$this->dialect = $dialect;
31
		$this->logger  = $logger;
32
	}
33
34
}
35