Nelmio\Alice\Faker\GeneratorFactory::getSeedGenerator PHP 메소드

getSeedGenerator() 공개 메소드

public getSeedGenerator ( ) : Generator
리턴 Faker\Generator
    public function getSeedGenerator() : FakerGenerator
    {
        return $this->generator;
    }

Usage Example

 private function getGenerator(GeneratorFactory $factory, string $formatter)
 {
     $explodedFormatter = explode(':', $formatter);
     $size = count($explodedFormatter);
     if (1 === $size) {
         return [$factory->getSeedGenerator(), $explodedFormatter[0]];
     }
     if (2 === $size) {
         return [$factory->createOrReturnExistingInstance($explodedFormatter[0]), $explodedFormatter[1]];
     }
     throw InvalidArgumentExceptionFactory::createForInvalidFakerFormatter($formatter);
 }
All Usage Examples Of Nelmio\Alice\Faker\GeneratorFactory::getSeedGenerator