Test Failed
Pull Request — master (#96)
by Jean-Christophe
13:01
created

DAOPreparedQueryOne::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 2
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
namespace Ubiquity\orm\core\prepared;
4
5
/**
6
 * Ubiquity\orm\core\prepared$DAOPreparedQueryOne
7
 * This class is part of Ubiquity
8
 *
9
 * @author jcheron <[email protected]>
10
 * @version 1.0.0
11
 *
12
 */
13
class DAOPreparedQueryOne extends DAOPreparedQueryById {
14
15
	public function __construct($className, $condition = '', $included = false) {
16
		DAOPreparedQuery::__construct ( $className, $condition, $included );
17
	}
18
19
	protected function prepare() {
20
		$this->conditionParser->limitOne ();
21
		DAOPreparedQuery::prepare ();
22
	}
23
}
24
25