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

Velo   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A stationsStatuses() 0 2 1
A __construct() 0 3 1
A stations() 0 2 1
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
}