Fakerino\Core\Filler\EntityFiller::fill PHP Méthode

fill() public méthode

public fill ( ) : boolean
Résultat boolean
    public function fill()
    {
        $this->fillProperties();
        $this->fillMethods();
        return true;
    }

Usage Example

 /**
  * 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();
 }