Passed
Push — master ( 4c9e55...edca11 )
by Evert
03:38
created

Velo::stationsStatuses()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Earnould\LaravelVeloApi;
4
5
class Velo
6
{
7
    protected $client;
8
9
    public function __construct(VeloClient $veloClient)
10
    {
11
        $this->veloClient = $veloClient;
0 ignored issues
show
Bug Best Practice introduced by
The property veloClient does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
12
    }
13
14
    public function stations(){
15
        return $this->veloClient->fetchStations();
16
    }
17
18
    public function stationsStatuses(){
19
        return $this->veloClient->fetchStationsStatuses();
20
    }
21
}