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