Completed
Push — master ( 6a8f4b...4a9289 )
by Peter
09:25
created

ConditionsAware   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 17
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConditions() 0 4 1
A setConditions() 0 5 1
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace Maslosoft\Manganel\Decorators\QueryBuilder\Traits;
10
11
/**
12
 * ConditionsAware
13
 *
14
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
15
 */
16
trait ConditionsAware
17
{
18
19
	private $conditions = [];
20
21 7
	public function getConditions()
22
	{
23 7
		return $this->conditions;
24
	}
25
26 7
	public function setConditions($conditions)
27
	{
28 7
		$this->conditions = $conditions;
29 7
		return $this;
30
	}
31
32
}
33