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