| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class PostFactory extends ModelFactory |
||
| 12 | { |
||
| 13 | public function published(): self |
||
| 14 | { |
||
| 15 | return $this->addState(function() { |
||
| 16 | return ['published_at' => self::faker()->dateTime()]; |
||
| 17 | }); |
||
| 18 | } |
||
| 19 | |||
| 20 | protected static function getClass(): string |
||
| 23 | } |
||
| 24 | |||
| 25 | protected function getDefaults(): array |
||
| 33 |