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

nofollow   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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 nofollow implements directiveInterface
7
{
8
    const DIRECTIVE = 'nofollow';
9
10
    public function __construct($value = null)
11
    {
12
    }
13
14
    public function getDirective()
15
    {
16
        return self::DIRECTIVE;
17
    }
18
19
    public function getArray()
20
    {
21
        return [self::DIRECTIVE => $this->getValue()];
22
    }
23
24
    public function getValue()
25
    {
26
        return true;
27
    }
28
}