HttpClient   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
/**
4
 * This file is a part of nekland youtube api package
5
 *
6
 * (c) Nekland <[email protected]>
7
 *
8
 * For the full license, take a look to the LICENSE file
9
 * on the root directory of this project
10
 */
11
12
namespace Nekland\YoutubeApi\Http;
13
14
use Nekland\BaseApi\Http\HttpClient as BaseHttpClient;
15
16
class HttpClient extends BaseHttpClient
17
{
18
    /**
19
     * @param array $options
20
     */
21
    public function __construct(array $options = [])
22
    {
23
        $options = array_merge([
24
            'base_url'   => 'https://www.googleapis.com/',
25
            'user_agent' => 'php-youtube-api (https://github.com/Nekland/YoutubeApi)'
26
        ], $options);
27
28
        parent::__construct($options);
29
        $this->getAuthFactory()->addNamespace('Nekland\\YoutubeApi\\Http\\Auth');
30
    }
31
32
}
33