Completed
Push — master ( 902e66...0cbd7a )
by Jan-Petter
02:44
created

HostClientCore::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
namespace vipnytt\RobotsTxtParser\Client\Directives;
3
4
/**
5
 * Class HostClientCore
6
 *
7
 * @package vipnytt\RobotsTxtParser\Client\Directives
8
 */
9
abstract class HostClientCore implements ClientInterface
10
{
11
    /**
12
     * Host values
13
     * @var string[]
14
     */
15
    protected $host;
16
17
    /**
18
     * Base uri
19
     * @var string
20
     */
21
    protected $base;
22
23
    /**
24
     * Effective uri
25
     * @var string
26
     */
27
    protected $effective;
28
29
    /**
30
     * HostClient constructor.
31
     *
32
     * @param string $base
33
     * @param string $effective
34
     * @param string[] $host
35
     */
36
    public function __construct($base, $effective, array $host)
37
    {
38
        $this->base = $base;
39
        $this->effective = $effective;
40
        $this->host = $host;
41
    }
42
}
43