ColumnInterface
last analyzed

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 37
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
getAlias() 0 1 ?
getPaginatorSource() 0 1 ?
getSource() 0 1 ?
isAggregated() 0 1 ?
getRawSelect() 0 1 ?
1
<?php
2
/*
3
 * WellCommerce Open-Source E-Commerce Platform
4
 *
5
 * This file is part of the WellCommerce package.
6
 *
7
 * (c) Adam Piotrowski <[email protected]>
8
 *
9
 * For the full copyright and license information,
10
 * please view the LICENSE file that was distributed with this source code.
11
 */
12
13
namespace WellCommerce\Component\DataSet\Column;
14
15
/**
16
 * Interface ColumnInterface
17
 *
18
 * @author  Adam Piotrowski <[email protected]>
19
 */
20
interface ColumnInterface
21
{
22
    /**
23
     * Returns column alias
24
     *
25
     * @return string
26
     */
27
    public function getAlias() : string;
28
29
    /**
30
     * Returns column paginator source
31
     *
32
     * @return string
33
     */
34
    public function getPaginatorSource() : string;
35
36
    /**
37
     * Returns column source option
38
     *
39
     * @return string
40
     */
41
    public function getSource() : string;
42
43
    /**
44
     * Returns true if column uses MySQL aggregate function. False otherwise.
45
     *
46
     * @return bool
47
     */
48
    public function isAggregated() : bool;
49
50
    /**
51
     * Returns a raw SQL select clause
52
     *
53
     * @return string
54
     */
55
    public function getRawSelect() : string;
56
}
57