Client::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
3
/**
4
 * @Author Chiarillo Massimo
5
 */
6
7
namespace Yandex\TranslatorBundle\Service;
8
9
use Guzzle\Http\Client as HttpClient;
10
11
class Client extends HttpClient
12
{
13
    const USER_AGENT = 'Yandex/Translator';
14
15
    public function __construct($baseUrl)
16
    {
17
        parent::__construct();
18
19
        $this->setUserAgent(
20
            self::USER_AGENT
21
        );
22
23
        $this->setBaseUrl($baseUrl);
24
    }
25
}
26