AbstractStrategy::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * This file is part of Laravel Meetups.
5
 *
6
 * (c) Nuno Maduro <[email protected]>
7
 *
8
 *  For the full copyright and license information, please view the LICENSE
9
 *  file that was distributed with this source code.
10
 */
11
12
namespace LaravelMeetups\Http\Client;
13
14
use LaravelMeetups\Contracts\Config;
15
16
/**
17
 * Class AbstractStrategy.
18
 */
19
abstract class AbstractStrategy
20
{
21
    /**
22
     * Holds a instance of config.
23
     *
24
     * @var Config
25
     */
26
    protected $config;
27
28
    public function __construct(Config $config)
29
    {
30
        $this->config = $config;
31
    }
32
33
    public function getUrl()
34
    {
35
        return $this->config->getUrl();
36
    }
37
38
    public function getParams()
39
    {
40
        return [];
41
    }
42
}
43