Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
30 | public function projects(): ObservableInterface |
||
31 | { |
||
32 | return Promise::toObservable( |
||
33 | $this->transport->request('projects') |
||
34 | )->flatMap(function ($response) { |
||
35 | return Observable::fromArray($response); |
||
36 | })->map(function ($project) { |
||
37 | return $this->transport->getHydrator()->hydrate('Project', $project); |
||
38 | }); |
||
39 | } |
||
40 | |||
48 |