public function getFakeData(Generator $faker)
    {
        if ($data = $this->getDataByFieldName($faker)) {
            return $data;
        }

        return $faker->sentence(rand(2, 5));
    }
public function getFakeData(Generator $faker)
    {
        if ($data = $this->getDataByFieldName($faker)) {
            return $data;
        }

        return $faker->sentence(rand(2, 5));
    }
public function getFakeData ( Generator $ faker ) { if ( $ data = $ this -> getDataByFieldName ( $ faker ) ) { return $ data ; } return $ faker -> sentence ( rand ( 2 , 5 ) ) ; }
Gets a random text value.

@param Faker\Generator
@return string
Gets a random text value .