Completed
Push — master ( 1b6743...e69112 )
by Jan-Petter
9s
created

RobotVersionClient::__construct()   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 1
1
<?php
2
namespace vipnytt\RobotsTxtParser\Client\Directives;
3
4
/**
5
 * Class RobotVersionClient
6
 *
7
 * @package vipnytt\RobotsTxtParser\Client\Directives
8
 */
9
class RobotVersionClient implements ClientInterface
10
{
11
    /**
12
     * Robot-version
13
     * @var string|null
14
     */
15
    private $robotVersion;
16
17
    /**
18
     * RobotVersionClient constructor.
19
     *
20
     * @param string|null $robotVersion
21
     */
22
    public function __construct($robotVersion)
23
    {
24
        $this->robotVersion = $robotVersion;
25
    }
26
27
    /**
28
     * Export
29
     *
30
     * @return string|null
31
     */
32
    public function export()
33
    {
34
        return $this->robotVersion;
35
    }
36
}
37