/** * Fills the given entity with fake data. * * @param object|null $entity * * @return bool * @throws \Fakerino\FakeData\Exception\MissingRequiredOptionException */ public function fakeEntity($entity = null) { if ($entity === null) { throw new MissingRequiredOptionException('entity to fake'); } $entityFiller = new EntityFiller($entity, $this); return $entityFiller->fill(); }