Completed
Push — master ( 3eb599...90cc4e )
by WEBEWEB
01:39
created

DataTablesWrapperTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getWrapper() 0 3 1
A setWrapper() 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;
13
14
/**
15
 * DataTables wrapper trait.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\JQuery\DataTablesBundle\API
19
 */
20
trait DataTablesWrapperTrait {
21
22
    /**
23
     * Wrapper.
24
     *
25
     * @var DataTablesWrapperInterface
26
     */
27
    private $wrapper;
28
29
    /**
30
     * Get the the wrapper.
31
     *
32
     * @return DataTablesWrapperInterface Returns the wrapper.
33
     */
34
    public function getWrapper() {
35
        return $this->wrapper;
36
    }
37
38
    /**
39
     * Set the wrapper.
40
     * @param DataTablesWrapperInterface $wrapper The wrapper.
41
     */
42
    public function setWrapper(DataTablesWrapperInterface $wrapper) {
43
        $this->wrapper = $wrapper;
44
        return $this;
45
    }
46
47
}
48