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

NoImageIndex::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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