| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 21 | public function fake($options = 0, $count = 5) |
|
| 49 | { |
||
| 50 | 21 | if ($options === 0) { |
|
| 51 | 21 | $options = Options::FAKE_COLLECTION; |
|
| 52 | } |
||
| 53 | 21 | $options |= Options::FAKE_RESOURCE_IDENTIFIER; |
|
| 54 | 21 | $options &= ~Options::FAKE_RESOURCE_OBJECT; |
|
| 55 | |||
| 56 | 21 | return $this->fakeData($options, $count) |
|
| 57 | 21 | ->fakeMeta() |
|
| 58 | 21 | ->fakeLinks(); |
|
| 59 | } |
||
| 61 |