Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function find() |
||
23 | { |
||
24 | $generateIntegers = (new GenerateIntegers($this->getHttpClient())); |
||
25 | |||
26 | $hours = $this->getRandomOrgAPI()->getData( |
||
27 | $generateIntegers->withParameters( |
||
28 | ['n' => 1, 'min' => 0, 'max' => 23] |
||
29 | ) |
||
30 | ); |
||
31 | $minutesSeconds = $this->getRandomOrgAPI()->getData( |
||
32 | $generateIntegers->withParameters( |
||
33 | ['n' => 2, 'min' => 0, 'max' => 59] |
||
34 | ) |
||
35 | ); |
||
36 | |||
37 | $this->time = [ |
||
38 | 'h' => $hours[0], |
||
39 | 'm' => $minutesSeconds[0], |
||
40 | 's' => $minutesSeconds[1], |
||
41 | ]; |
||
42 | |||
43 | return $this; |
||
44 | } |
||
45 | |||
56 |