Config   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 90
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 90
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 5 1
A getName() 0 4 1
A setType() 0 5 1
A getType() 0 4 1
A setExpiresAt() 0 5 1
A getExpiresAt() 0 4 1
A setValue() 0 5 1
A getValue() 0 4 1
1
<?php
2
3
namespace BWC\Share\Config\Model;
4
5
class Config implements ConfigInterface
6
{
7
    /** @var  string */
8
    protected $name;
9
10
    /** @var  string */
11
    protected $type;
12
13
    /** @var  \DateTime|null */
14
    protected $expiresAt;
15
16
    /** @var  bool|int|string|array|object */
17
    protected $value;
18
19
20
21
22
    /**
23
     * @param string $name
24
     * @return $this|ConfigInterface
25
     */
26
    public function setName($name)
27
    {
28
        $this->name = $name;
29
        return $this;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getName()
36
    {
37
        return $this->name;
38
    }
39
40
    /**
41
     * @param string $type
42
     * @return $this|ConfigInterface
43
     */
44
    public function setType($type)
45
    {
46
        $this->type = $type;
47
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getType()
54
    {
55
        return $this->type;
56
    }
57
58
    /**
59
     * @param \DateTime|null $expiresAt
60
     * @return $this|Config
61
     */
62
    public function setExpiresAt(\DateTime $expiresAt = null)
63
    {
64
        $this->expiresAt = $expiresAt;
65
        return $this;
66
    }
67
68
    /**
69
     * @return \DateTime|null
70
     */
71
    public function getExpiresAt()
72
    {
73
        return $this->expiresAt;
74
    }
75
76
    /**
77
     * @param array|bool|int|object|string $value
78
     * @return $this|ConfigInterface
79
     */
80
    public function setValue($value)
81
    {
82
        $this->value = $value;
83
        return $this;
84
    }
85
86
    /**
87
     * @return array|bool|int|object|string
88
     */
89
    public function getValue()
90
    {
91
        return $this->value;
92
    }
93
94
}