DefaultPriority   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaultPriority() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Adrian Dumitru
5
 * Date: 8/1/2017
6
 * Time: 4:43 PM
7
 */
8
9
namespace Qpdb\QueryBuilder\Traits;
10
11
12
use Qpdb\QueryBuilder\Dependencies\QueryStructure;
13
14
/**
15
 * Trait DefaultPriority
16
 * @package Qpdb\QueryBuilder\Traits
17
 * @property  QueryStructure $queryStructure
18
 */
19
trait DefaultPriority
20
{
21
22
	/**
23
	 * @return $this
24
	 * @throws \Qpdb\QueryBuilder\Dependencies\QueryException
25
	 */
26
	public function defaultPriority()
27
	{
28
		$this->queryStructure->setElement( QueryStructure::PRIORITY, '' );
29
30
		return $this;
31
	}
32
33
}