IfExistsTrait::ifExists()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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