DBExpr::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 0
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