Completed
Push — master ( 226980...c1625e )
by Hong
02:50
created

Expression::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Phossa Project
4
 *
5
 * PHP version 5.4
6
 *
7
 * @category  Library
8
 * @package   Phossa2\Query
9
 * @copyright Copyright (c) 2016 phossa.com
10
 * @license   http://mit-license.org/ MIT License
11
 * @link      http://www.phossa.com/
12
 */
13
/*# declare(strict_types=1); */
14
15
namespace Phossa2\Query\Misc;
16
17
use Phossa2\Query\Traits\Clause\OnTrait;
18
use Phossa2\Query\Traits\StatementAbstract;
19
use Phossa2\Query\Traits\Clause\WhereTrait;
20
use Phossa2\Query\Traits\Clause\ClauseTrait;
21
use Phossa2\Query\Interfaces\BuilderInterface;
22
use Phossa2\Query\Interfaces\ExpressionInterface;
23
24
/**
25
 * Expression
26
 *
27
 * @package Phossa2\Query
28
 * @author  Hong Zhang <[email protected]>
29
 * @see     ExpressionInterface
30
 * @version 2.0.0
31
 * @since   2.0.0 added
32
 */
33
class Expression extends StatementAbstract implements ExpressionInterface
34
{
35
    use ClauseTrait, WhereTrait, OnTrait;
36
37
    /**
38
     * {@inheritDoc}
39
     */
40
    protected $configs = ['WHERE' => ''];
41
42
    /**
43
     * {@inheritDoc}
44
     */
45
    public function __construct(BuilderInterface $builder)
46
    {
47
        parent::__construct($builder);
48
49
        // force flat notation
50
        $this->setSettings(['seperator' => ' ', 'indent' => '']);
51
    }
52
53
    /**
54
     * {@inheritDoc}
55
     */
56
    protected function getType()/*# : string */
57
    {
58
        return '';
59
    }
60
}
61