Passed
Push — master ( 99686f...b494ba )
by Jean-Christophe
11:21
created

DAOPreparedQueryOne   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 2
eloc 5
c 3
b 0
f 1
dl 0
loc 10
ccs 7
cts 7
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A prepare() 0 4 1
A __construct() 0 2 1
1
<?php
2
namespace Ubiquity\orm\core\prepared;
3
4
use Ubiquity\cache\database\DbCache;
5
6
/**
7
 * Ubiquity\orm\core\prepared$DAOPreparedQueryOne
8
 * This class is part of Ubiquity
9
 *
10
 * @author jcheron <[email protected]>
11
 * @version 1.0.2
12
 *
13
 */
14
class DAOPreparedQueryOne extends DAOPreparedQueryById {
15
16 28
	public function __construct($className, $condition = '', $included = false, $cache = null) {
17 28
		DAOPreparedQuery::__construct($className, $condition, $included, $cache);
18 28
	}
19
20 28
	protected function prepare(?DbCache $cache = null) {
21 28
		$this->conditionParser->limitOne();
22 28
		DAOPreparedQuery::prepare($cache);
23 28
		$this->updatePrepareStatement();
24 28
	}
25
}
26
27