Completed
Push — master ( 3ec9c1...244937 )
by Max
02:44
created

AbstractHttpClient   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 29
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUrl() 0 3 1
A getUrl() 0 3 1
1
<?php
2
3
namespace NFLScores\Http;
4
5
use NFLScores\Interfaces\HttpClientInterface;
6
7
/**
8
 * Abstract HTTP client implementation.
9
 */
10
abstract class AbstractHttpClient implements HttpClientInterface
11
{
12
    /**
13
     * The URL for this client.
14
     *
15
     * @var string
16
     */
17
    protected $url;
18
19
    /**
20
     * Returns the url property.
21
     *
22
     * @return string
23
     */
24
    public function getUrl()
25
    {
26
        return $this->url;
27
    }
28
29
    /**
30
     * Sets the url property.
31
     *
32
     * @param string $url
33
     *
34
     * @return void
35
     */
36
    public function setUrl(string $url)
37
    {
38
        $this->url = $url;
39
    }
40
}
41