Completed
Push — master ( 4f2256...502226 )
by WEBEWEB
01:28
created

DataTablesMapping::getAlias()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 3
nc 3
nop 0
1
<?php
2
3
/*
4
 * This file is part of the jquery-datatables-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\JQuery\DataTablesBundle\API;
13
14
/**
15
 * DataTables mapping.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\JQuery\DataTablesBundle\API
19
 */
20
class DataTablesMapping implements DataTablesMappingInterface {
21
22
    /**
23
     * Column.
24
     *
25
     * @var string
26
     */
27
    private $column;
28
29
    /**
30
     * Parent.
31
     *
32
     * @var DataTablesColumnInterface
33
     */
34
    private $parent;
35
36
    /**
37
     * Prefix.
38
     *
39
     * @var string
40
     */
41
    private $prefix;
42
43
    /**
44
     * Constructor.
45
     */
46
    public function __construct() {
47
        // NOTHING TO DO.
48
    }
49
50
    /**
51
     * {@inheritDoc}
52
     */
53
    public function getColumn() {
54
        return $this->column;
55
    }
56
57
    /**
58
     * {@inheritDoc}
59
     */
60
    public function getParent() {
61
        return $this->parent;
62
    }
63
64
    /**
65
     * {@inheritDoc}
66
     */
67
    public function getPrefix() {
68
        return $this->prefix;
69
    }
70
71
    /**
72
     * {@inheritDoc}
73
     */
74
    public function setColumn($column) {
75
        $this->column = $column;
76
        return $this;
77
    }
78
79
    /**
80
     * Set the parent.
81
     *
82
     * @param DataTablesColumnInterface $parent The parent.
83
     * @return DataTablesMappingInterface Returns this mapping.
84
     */
85
    public function setParent(DataTablesColumnInterface $parent) {
86
        $this->parent = $parent;
87
        return $this;
88
    }
89
90
    /**
91
     * {@inheritDoc}
92
     */
93
    public function setPrefix($prefix) {
94
        $this->prefix = $prefix;
95
        return $this;
96
    }
97
}
98