Fakerino\Core\Filler\EntityFiller::fill PHP Method

fill() public method

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

Usage Example

Beispiel #1
0
 /**
  * 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();
 }