| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function __construct() |
||
| 34 | { |
||
| 35 | // Create People models if none exists |
||
| 36 | if (! People::query()->count()) { |
||
| 37 | self::createTrackables(); |
||
| 38 | } |
||
| 39 | |||
| 40 | $this->type = self::MODELS[rand(0, count(self::MODELS) - 1)]; |
||
| 41 | $this->id = (new RandomModelAttributeQuery($this->type, $this->type::getPrimaryKeyName()))->execute(); |
||
| 42 | } |
||
| 57 |