DBExpr   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 1
b 0
f 0
dl 0
loc 23
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A getExpression() 0 2 1
A __toString() 0 2 1
1
<?php
2
namespace Kir\MySQL\Builder;
3
4
class DBExpr {
5
	/** @var string */
6
	private $expression;
7
8
	/**
9
	 * @param string $expression
10
	 */
11
	public function __construct(string $expression) {
12
		$this->expression = $expression;
13
	}
14
15
	/**
16
	 * @return string
17
	 */
18
	public function getExpression(): string {
19
		return $this->expression;
20
	}
21
22
	/**
23
	 * @return string
24
	 */
25
	public function __toString(): string {
26
		return $this->expression;
27
	}
28
}
29