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

DBExpr   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 25
rs 10

3 Methods

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