Client   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 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