BarenoteApplication   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getClient() 0 4 1
1
<?php
2
namespace BarenoteCli;
3
4
use Barenote\BarenoteClient;
5
use Symfony\Component\Console\Application;
6
7
class BarenoteApplication extends Application
8
{
9
    /**
10
     * @var BarenoteClient
11
     */
12
    protected $client;
13
    
14
    public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN', $host = 'http://localhost:8080')
15
    {
16
        parent::__construct($name, $version);
17
        $this->client = new BarenoteClient($host);
18
    }
19
    
20
    /**
21
     * @return BarenoteClient
22
     */
23
    public function getClient()
24
    {
25
        return $this->client;
26
    }
27
}