Completed
Push — master ( e78d8a...96e91a )
by WEBEWEB
01:20
created

DataTablesMapping::setColumn()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

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 3
nc 1
nop 1
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\Mapping;
13
14
/**
15
 * DataTables mapping.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\JQuery\DatatablesBundle\Mapping
19
 * @final
20
 */
21
final class DataTablesMapping {
22
23
    /**
24
     * Column.
25
     *
26
     * @var string
27
     */
28
    private $column;
29
30
    /**
31
     * Prefix.
32
     *
33
     * @var string
34
     */
35
    private $prefix;
36
37
    /**
38
     * Constructor.
39
     */
40
    public function __construct() {
41
        // NOTHING TO DO.
42
    }
43
44
    /**
45
     * Get the column.
46
     *
47
     * @return string Returns the column.
48
     */
49
    public function getColumn() {
50
        return $this->column;
51
    }
52
53
    /**
54
     * Get the prefix.
55
     *
56
     * @return string Returns the prefix.
57
     */
58
    public function getPrefix() {
59
        return $this->prefix;
60
    }
61
62
    /**
63
     * Set the column.
64
     *
65
     * @param string $column The column.
66
     * @return DataTablesMapping Returns the DataTables mapping.
67
     */
68
    public function setColumn($column) {
69
        $this->column = $column;
70
        return $this;
71
    }
72
73
    /**
74
     * Set the prefix.
75
     *
76
     * @param string $prefix The prefix.
77
     * @return DataTablesMapping Returns the DataTables mapping.
78
     */
79
    public function setPrefix($prefix) {
80
        $this->prefix = $prefix;
81
        return $this;
82
    }
83
84
}
85