Completed
Push — master ( 5753af...41dae5 )
by Jan-Petter
06:59
created

NoImageIndex   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getDirective() 0 4 1
A getValue() 0 4 1
A getMeaning() 0 4 1
1
<?php
2
namespace vipnytt\XRobotsTagParser\directives;
3
4
final class NoImageIndex implements directiveInterface
5
{
6
    const DIRECTIVE = 'noimageindex';
7
    const MEANING = 'Do not index images on this page.';
8
9
    /**
10
     * Constructor
11
     *
12
     * @param string $rule
13
     */
14
    public function __construct($rule)
15
    {
16
17
    }
18
19
    /**
20
     * Get directive name
21
     *
22
     * @return string
23
     */
24
    public function getDirective()
25
    {
26
        return self::DIRECTIVE;
27
    }
28
29
    /**
30
     * Get value
31
     *
32
     * @return bool|string|null
33
     */
34
    public function getValue()
35
    {
36
        return true;
37
    }
38
39
    /**
40
     * Get directive meaning
41
     *
42
     * @return string
43
     */
44
    public function getMeaning()
45
    {
46
        return self::MEANING;
47
    }
48
}
49