Completed
Push — master ( 47c098...6c95d6 )
by smiley
02:23
created

IfNotExistsTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

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