public function fillMethods()
    {
        $entity = $this->entity;
        $entityInfo = new EntityInfo($entity);
        $entityMethods = $entityInfo->getSetters();
        foreach ($entityMethods as $methods) {
            $methodsName = $methods->getName();
            $nameToFake = substr($methodsName, 3, strlen($methodsName));
            $fakeData = $this->faker->fake($nameToFake)->toArray();
            if ($methods->isStatic()) {
                $entity::$methodsName($fakeData[0]);
            } else {
                $entity->$methodsName($fakeData[0]);
            }
        }
    }
public function fillMethods()
    {
        $entity = $this->entity;
        $entityInfo = new EntityInfo($entity);
        $entityMethods = $entityInfo->getSetters();
        foreach ($entityMethods as $methods) {
            $methodsName = $methods->getName();
            $nameToFake = substr($methodsName, 3, strlen($methodsName));
            $fakeData = $this->faker->fake($nameToFake)->toArray();
            if ($methods->isStatic()) {
                $entity::$methodsName($fakeData[0]);
            } else {
                $entity->$methodsName($fakeData[0]);
            }
        }
    }
public function fillMethods ( ) { $ entity = $ this -> entity ; $ entityInfo = new EntityInfo ( $ entity ) ; $ entityMethods = $ entityInfo -> getSetters ( ) ; foreach ( $ entityMethods as $ methods ) { $ methodsName = $ methods -> getName ( ) ; $ nameToFake = substr ( $ methodsName , 3 , strlen ( $ methodsName ) ) ; $ fakeData = $ this -> faker -> fake ( $ nameToFake ) -> toArray ( ) ; if ( $ methods -> isStatic ( ) ) { $ entity :: $ methodsName ( $ fakeData [ 0 ] ) ; } else { $ entity -> $ methodsName ( $ fakeData [ 0 ] ) ; } } }
Fills mehtods.
Fills mehtods .