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

DAOPreparedQueryOne   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
eloc 4
c 2
b 0
f 1
dl 0
loc 9
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A prepare() 0 3 1
A __construct() 0 2 1
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