Completed
Push — master ( 947184...ad3618 )
by
unknown
9s
created

StatusStoredPluginTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 29
ccs 0
cts 5
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setStatus() 0 4 1
A getStatus() 0 4 1
1
<?php
2
3
4
namespace eXpansion\Framework\Core\Plugins;
5
6
7
/**
8
 * Class StatusStoredPluginTrait
9
 *
10
 * @package eXpansion\Framework\Core\Plugins;
11
 * @author  oliver de Cramer <[email protected]>
12
 */
13
Trait StatusStoredPluginTrait
14
{
15
16
    protected $currentStatus = false;
17
18
    /**
19
     * Set the status of the plugin
20
     *
21
     * @param boolean $status
22
     *
23
     * @return null
24
     */
25
    public function setStatus($status)
26
    {
27
        $this->currentStatus = $status;
28
    }
29
30
    /**
31
     * Get the current status of a plugin.
32
     *
33
     * @return boolean
34
     */
35
    public function getStatus()
36
    {
37
        return $this->currentStatus;
38
    }
39
40
41
}