src/Faker.php
public function getGenerator()
    {
        if (!$this->generator) {
            $this->generator = Factory::create($this->locale);
        }

        return $this->generator;
    }
public function getGenerator()
    {
        if (!$this->generator) {
            $this->generator = Factory::create($this->locale);
        }

        return $this->generator;
    }
public function getGenerator ( ) { if ( ! $ this -> generator ) { $ this -> generator = Factory :: create ( $ this -> locale ) ; } return $ this -> generator ; }
Get the generator instance.

@return \Faker\Generator
Get the generator instance .