Metaregistrar\EPP\eppContact::__construct PHP Method

__construct() public method

public __construct ( Metaregistrar\EPP\eppContactPostalInfo $postalInfo = null, string $email = null, string $voice = null, string $fax = null, string $password = null, string $status = null )
$postalInfo Metaregistrar\EPP\eppContactPostalInfo
$email string
$voice string
$fax string
$password string
$status string
    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));
    }