Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
middleNameMale();
}
if ($gender === static::GENDER_FEMALE) {
return $this->middleNameFemale();
}
return $this->middleName(static::randomElement([
static::GENDER_MALE,
static::GENDER_FEMALE,
]));
}
/**
* Return last name for the specified gender.
*
* @param string|null $gender A gender of the last name should be generated
* for. If the argument is skipped a random gender will be used.
*
* @return string Last name
*/
public function lastName($gender = null)
{
if (static::GENDER_FEMALE === $gender) {
return $this->lastNameFemale();
}
if (static::GENDER_MALE === $gender) {
return $this->lastNameMale();
}
return static::randomElement(static::$lastName) . static::randomElement(static::$lastNameSuffix);
}
public function lastNameMale(): string
{
return static::randomElement(static::$lastName);
}
public function lastNameFemale(): string
{
return static::randomElement(static::$lastName) . 'а';
}
}