GnfSqlNot::__construct()   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 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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