public function fakeEntity($entity = null)
    {
        if ($entity === null) {
            throw new MissingRequiredOptionException('entity to fake');
        }
        $entityFiller = new EntityFiller($entity, $this);

        return $entityFiller->fill();
    }
public function fakeEntity($entity = null)
    {
        if ($entity === null) {
            throw new MissingRequiredOptionException('entity to fake');
        }
        $entityFiller = new EntityFiller($entity, $this);

        return $entityFiller->fill();
    }
public function fakeEntity ( $ entity = null ) { if ( $ entity === null ) { throw new MissingRequiredOptionException ( 'entity to fake' ) ; } $ entityFiller = new EntityFiller ( $ entity , $ this ) ; return $ entityFiller -> fill ( ) ; }
Fills the given entity with fake data.

@param object|null $entity

@return bool
@throws \Fakerino\FakeData\Exception\MissingRequiredOptionException
Fills the given entity with fake data .