ModuleOptions   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 50
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getAchievementProviders() 0 4 1
A setAchievementProviders() 0 6 1
A getStorageAdapter() 0 4 1
A setStorageAdapter() 0 6 1
1
<?php
2
/**
3
 * ModuleOptions
4
 *
5
 * @category  AxalianAchievements\Options
6
 * @package   AxalianAchievements\Options
7
 * @author    Michel Maas <[email protected]>
8
 */
9
10
namespace AxalianAchievements\Options;
11
12
use Zend\Stdlib\AbstractOptions;
13
14
class ModuleOptions extends AbstractOptions
15
{
16
    /**
17
     * @var array
18
     */
19
    protected $achievement_providers;
20
21
    /**
22
     * @var string
23
     */
24
    protected $storage_adapter;
25
26
    /**
27
     * @return array
28
     */
29
    public function getAchievementProviders()
30
    {
31
        return $this->achievement_providers;
32
    }
33
34
    /**
35
     * @param array $achievement_providers
36
     * @return ModuleOptions
37
     */
38
    public function setAchievementProviders($achievement_providers)
39
    {
40
        $this->achievement_providers = $achievement_providers;
41
42
        return $this;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getStorageAdapter()
49
    {
50
        return $this->storage_adapter;
51
    }
52
53
    /**
54
     * @param string $storage_adapter
55
     * @return ModuleOptions
56
     */
57
    public function setStorageAdapter($storage_adapter)
58
    {
59
        $this->storage_adapter = $storage_adapter;
60
61
        return $this;
62
    }
63
}
64