Completed
Push — master ( 26bda2...b142f3 )
by Jan-Petter
02:30
created

all   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getDirective() 0 4 1
A getArray() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace vipnytt\XRobotsTagParser\directives;
4
5
6
final class all implements directiveInterface
7
{
8
    const DIRECTIVE = 'all';
9
10
    public function __construct($value = null)
11
    {
12
13
    }
14
15
    public function getDirective()
16
    {
17
        return self::DIRECTIVE;
18
    }
19
20
    public function getArray()
21
    {
22
        return [self::DIRECTIVE => $this->getValue()];
23
    }
24
25
    public function getValue()
26
    {
27
        return true;
28
    }
29
}