HttpClient::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
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