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

Velo::stationsWithStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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