| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class VeloStations |
||
| 8 | { |
||
| 9 | protected $veloClient; |
||
| 10 | |||
| 11 | 7 | public function __construct(VeloClientInterface $veloClient) |
|
| 14 | 7 | } |
|
| 15 | |||
| 16 | 2 | public function all() |
|
| 17 | { |
||
| 18 | $stations = $this->veloClient->fetchStations()->map(function($station){ |
||
| 19 | 2 | return new Station($station); |
|
| 20 | 2 | }); |
|
| 21 | |||
| 22 | 2 | return $stations; |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | public function allWithStatus() |
|
| 36 | } |
||
| 37 | |||
| 38 | 3 | public function statuses() |
|
| 43 |