src/ProviderProxy.php
/**
     * Creates an instance of provider
     *
     * @param \Faker\Generator $faker
     * @return object
     * @throws Exception\UnableProviderInstantiateException
     */
Creates an instance of provider
@param \Faker\Generator $faker
@return object
@throws Exception\UnableProviderInstantiateException
Creates an instance of provider @param \ Faker \ Generator $faker @return object @throws Exception \ UnableProviderInstantiateException
public function instantiateProvider(\Faker\Generator $faker)
    {
        try {
            $reflectionClass = new \ReflectionClass($this->providerClassName);
            return $reflectionClass->newInstanceArgs([$faker]);
        } catch (\ReflectionException $ex) {
            throw new UnableProviderInstantiateException($this->providerClassName);
        }
    }
public function instantiateProvider ( \ Faker \ Generator $ faker ) { try { $ reflectionClass = new \ ReflectionClass ( $ this -> providerClassName ) ; return $ reflectionClass -> newInstanceArgs ( [ $ faker ] ) ; } catch ( \ ReflectionException $ ex ) { throw new UnableProviderInstantiateException ( $ this -> providerClassName ) ; } }
Creates an instance of provider
 @param \Faker\Generator $faker
 @return object
 @throws Exception\UnableProviderInstantiateException
Creates an instance of provider @param \ Faker \ Generator $faker @return object @throws Exception \ UnableProviderInstantiateException