Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
58 | 4 | public function fake($options = null, $count = null) |
|
59 | { |
||
60 | if (is_null($options)) { |
||
61 | $options = self::FAKE_SINGLE | self::FAKE_RESOURCE_OBJECT; |
||
62 | } |
||
63 | |||
64 | $withErrors = (($options & self::FAKE_ERRORS) == self::FAKE_ERRORS); |
||
65 | 2 | ||
66 | $this->fakeLinks() |
||
67 | 2 | ->fakeMeta() |
|
68 | ->fakeJsonapi(); |
||
69 | 2 | ||
70 | 2 | return $withErrors ? $this->fakeErrors($count) : $this->fakeData($options, $count); |
|
71 | } |
||
73 |