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

DAOPreparedQueryOne::prepare()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 4
ccs 4
cts 4
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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