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

AbstractHttpClient::getUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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