Passed
Push — master ( 23e4b6...12f961 )
by Evert
02:59 queued 14s
created

Velo   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 81.82%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 26
ccs 9
cts 11
cp 0.8182
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A stationsStatuses() 0 5 1
A stations() 0 5 1
A stationsWithStatus() 0 3 1
1
<?php
2
3
namespace Earnould\LaravelVeloApi;
4
5
class Velo
6
{
7
    protected $veloClient;
8
9 4
    public function __construct(VeloClient $veloClient)
10
    {
11 4
        $this->veloClient = $veloClient;
12 4
    }
13
14 1
    public function stations()
15
    {
16 1
        $stations = $this->veloClient->fetchStations();
17
18 1
        return $stations;
19
    }
20
21 1
    public function stationsStatuses()
22
    {
23 1
        $stationsStatuses = $this->veloClient->fetchStationsStatuses();
24
25 1
        return $stationsStatuses;
26
    }
27
28
    public function stationsWithStatus()
29
    {
30
        return $this->veloClient->fetchStationsWithStatus();
31
    }
32
}
33