AddonTableBuilder::setType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 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