Completed
Push — master ( c43b9a...3eca47 )
by WEBEWEB
01:29
created

DataTablesMapping   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 64
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getColumn() 0 3 1
A getPrefix() 0 3 1
A setColumn() 0 4 1
A setPrefix() 0 4 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\Mapping;
13
14
/**
15
 * DataTables mapping.
16
 *
17
 * @author Camille A. <[email protected]>
18
 * @package WBW\Bundle\JQuery\DatatablesBundle\API\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