Conditions | 6 |
Paths | 32 |
Total Lines | 21 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
50 | 9 | public function toArray() |
|
51 | { |
||
52 | $request = [ |
||
53 | 9 | 'include_entities' => $this->includeEntities ? 'true' : 'false', |
|
54 | 9 | 'skip_status' => $this->skipStatus ? 'true' : 'false' |
|
55 | 6 | ]; |
|
56 | |||
57 | 9 | if ($this->count !== null) { |
|
58 | 9 | $request['count'] = $this->count; |
|
59 | 6 | } |
|
60 | |||
61 | 9 | if ($this->fromId !== null) { |
|
62 | 6 | $request['since_id'] = $this->fromId; |
|
63 | 4 | } |
|
64 | |||
65 | 9 | if ($this->toId !== null) { |
|
66 | 6 | $request['max_id'] = $this->toId; |
|
67 | 4 | } |
|
68 | |||
69 | 9 | return $request; |
|
70 | } |
||
71 | } |
||
72 |