IfExistsTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A ifExists() 0 4 1
1
<?php
2
/**
3
 * Trait IfExistsTrait
4
 *
5
 * @filesource   IfExistsTrait.php
6
 * @created      08.01.2018
7
 * @package      chillerlan\Database\Query
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2018 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\Database\Query;
14
15
trait IfExistsTrait{
16
17
	protected bool $ifExists = false;
18
19
	/**
20
	 * @return $this
21
	 */
22
	public function ifExists():Statement{
23
		$this->ifExists = true;
24
25
		return $this;
26
	}
27
28
}
29