Completed
Push — master ( dbc0ff...b4a470 )
by WEBEWEB
01:31
created

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