GnfSqlNot   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
B isSwitchable() 0 11 5
1
<?php
2
3
namespace Gnf\db\Helper;
4
5
class GnfSqlNot extends GnfSqlCompareOperator
6
{
7
	public function __construct($in)
8
	{
9
		$this->dat = $in;
10
	}
11
12
	public static function isSwitchable($in)
13
	{
14
		return
15
			is_a($in, '\Gnf\db\Helper\GnfSqlNot') &&
16
			(
17
				is_a($in->dat, '\Gnf\db\Helper\GnfSqlCompareOperator')
18
				|| is_a($in->dat, '\Gnf\db\Helper\GnfSqlNull')
19
				|| is_scalar($in->dat)
20
				|| is_array($in->dat)
21
			);
22
	}
23
}
24