Completed
Push — master ( 9254f0...47252c )
by James
04:54
created

AbstractDirective::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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