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

HostClientCore   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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