DBExpr   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

3 Methods

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