Completed
Push — master ( 38549a...e37d11 )
by Ron
02:46
created

DBExpr::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Kir\MySQL\Builder;
4
5
class DBExpr {
6
	/** @var string */
7
	private $expression;
8
9
	/**
10
	 * @param $expression
11
	 */
12
	public function __construct($expression) {
13
		$this->expression = $expression;
14
	}
15
16
	/**
17
	 * @return string
18
	 */
19
	public function getExpression() {
20
		return $this->expression;
21
	}
22
23
	/**
24
	 * @return string
25
	 */
26
	public function __toString() {
27
		return $this->expression;
28
	}
29
}
30