AddonTableBuilder   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 33
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A setType() 0 6 1
1
<?php namespace Anomaly\AddonsModule\Addon\Table;
2
3
use Anomaly\Streams\Platform\Ui\Table\TableBuilder;
4
5
/**
6
 * Class AddonTableBuilder
7
 *
8
 * @link          http://pyrocms.com/
9
 * @author        PyroCMS, Inc. <[email protected]>
10
 * @author        Ryan Thompson <[email protected]>
11
 */
12
class AddonTableBuilder extends TableBuilder
13
{
14
15
    /**
16
     * The addon type to list.
17
     *
18
     * @var null|string
19
     */
20
    protected $type = null;
21
22
    /**
23
     * Get the type.
24
     *
25
     * @return null|string
26
     */
27
    public function getType()
28
    {
29
        return $this->type;
30
    }
31
32
    /**
33
     * Set the type.
34
     *
35
     * @param $type
36
     * @return $this
37
     */
38
    public function setType($type)
39
    {
40
        $this->type = $type;
41
42
        return $this;
43
    }
44
}
45