Passed
Push — developer ( 073bf8...dc3b46 )
by Radosław
29:51 queued 14:38
created

GroupField::getValue()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 2
nc 2
nop 0
1
<?php
2
/**
3
 * Group Query Field Class.
4
 *
5
 * @package UIType
6
 *
7
 * @copyright YetiForce S.A.
8
 * @license   YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
9
 * @author    Adrian Kon <[email protected]>
10
 */
11
12
namespace App\Conditions\QueryFields;
13
14
class GroupField extends BaseField
15
{
16
	/** {@inheritdoc} */
17
	public function getValue()
18
	{
19
		if (\is_array($this->value)) {
20
			return $this->value;
21
		}
22
		return explode('##', $this->value);
23
	}
24
}
25