public function getGenerator()
    {
        if ($this->_generator === null) {
            $language = $this->language === null ? Yii::$app->language : $this->language;
            $this->_generator = \Faker\Factory::create(str_replace('-', '_', $language));
        }
        return $this->_generator;
    }
public function getGenerator()
    {
        if ($this->_generator === null) {
            $language = $this->language === null ? Yii::$app->language : $this->language;
            $this->_generator = \Faker\Factory::create(str_replace('-', '_', $language));
        }
        return $this->_generator;
    }
public function getGenerator ( ) { if ( $ this -> _generator === null ) { $ language = $ this -> language === null ? Yii :: $ app -> language : $ this -> language ; $ this -> _generator = \ Faker \ Factory :: create ( str_replace ( '-' , '_' , $ language ) ) ; } return $ this -> _generator ; }
Returns Faker generator instance. Getter for private property.
@return \Faker\Generator
Returns Faker generator instance . Getter for private property .