Metaregistrar\EPP\eppDomain::setPeriodUnit PHP Метод

setPeriodUnit() публичный Метод

public setPeriodUnit ( $periodunit )
    public function setPeriodUnit($periodunit)
    {
        if ($periodunit == eppDomain::DOMAIN_PERIOD_UNIT_Y || $periodunit == eppDomain::DOMAIN_PERIOD_UNIT_M) {
            $this->periodunit = $periodunit;
        } else {
            throw new eppException("Domain period unit " . $periodunit . " is invalid, only m or y allowed");
        }
    }