Completed
Push — master ( 87a229...1012d8 )
by Restu
15:25
created

Grammar   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 46
rs 10
wmc 3
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
build() 0 1 ?
A getQuery() 0 4 1
A setQuery() 0 4 1
A getParams() 0 4 1
1
<?php
2
namespace JayaCode\Framework\Core\Database\Query\Grammar;
3
4
use JayaCode\Framework\Core\Database\Query\Query;
5
6
/**
7
 * Class Grammar
8
 * @package JayaCode\Framework\Core\Database\Query\Grammar
9
 */
10
abstract class Grammar
11
{
12
    /**
13
     * @var
14
     */
15
    protected $queryString;
16
17
    /**
18
     * @var Query
19
     */
20
    protected $query;
21
22
    /**
23
     * @var array
24
     */
25
    protected $params = array();
26
27
    /**
28
     * @return mixed
29
     */
30
    abstract public function build();
31
32
    /**
33
     * @return mixed
34
     */
35
    public function getQuery()
36
    {
37
        return $this->query;
38
    }
39
40
    /**
41
     * @param mixed $query
42
     */
43
    public function setQuery($query)
44
    {
45
        $this->query = $query;
46
    }
47
48
    /**
49
     * @return array
50
     */
51
    public function getParams()
52
    {
53
        return $this->params;
54
    }
55
}
56