public function __construct($postalInfo = null, $email = null, $voice = null, $fax = null, $password = null, $status = null)
{
if ($postalInfo instanceof eppContactPostalInfo) {
$this->addPostalInfo($postalInfo);
} else {
if (is_array($postalInfo)) {
foreach ($postalInfo as $pi) {
if ($pi instanceof eppContactPostalInfo) {
$this->addPostalInfo($pi);
}
}
}
}
$this->setEmail($email);
$this->setPassword($password);
$this->setVoice($voice);
$this->setFax($fax);
$this->setStatus($status);
$this->setPassword(self::generateRandomString(10));
}