AbstractDirective   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 4 1
A getAvailabilty() 0 4 1
A getValue() 0 4 1
A getContext() 0 4 1
1
<?php
2
3
/**
4
 * This file is, guess what, part of WebHelper.
5
 *
6
 * (c) James <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace JamesRezo\WebHelper\Directive;
13
14
/**
15
 * DirectiveInterface is the interface implemented by all directive classes.
16
 *
17
 * @author James <[email protected]>
18
 */
19
abstract class AbstractDirective implements DirectiveInterface
20
{
21
    private $name;
22
23
    private $availability;
24
25
    private $value;
26
27
    private $context;
28
29
    public function __construct($name, $value)
30
    {
31
        $this->name = $name;
32
        $this->value = $value;
33
    }
34
35
    public function getName()
36
    {
37
        return $this->name;
38
    }
39
40
    public function getAvailabilty()
41
    {
42
        return $this->availability;
43
    }
44
45
    public function getValue()
46
    {
47
        return $this->value;
48
    }
49
50
    public function getContext()
51
    {
52
        return $this->context;
53
    }
54
}
55