public function setDomainName($domain)
    {
        $domain = strtolower($domain);
        if (!$this->getDomainValidator()->isValid($domain)) {
            throw new InvalidArgumentException(
                'Domain name is invalid: ' . $domain
            );
        }

        $this->domain = $domain;
    }
public function setDomainName($domain)
    {
        $domain = strtolower($domain);
        if (!$this->getDomainValidator()->isValid($domain)) {
            throw new InvalidArgumentException(
                'Domain name is invalid: ' . $domain
            );
        }

        $this->domain = $domain;
    }
public function setDomainName ( $ domain ) { $ domain = strtolower ( $ domain ) ; if ( ! $ this -> getDomainValidator ( ) -> isValid ( $ domain ) ) { throw new InvalidArgumentException ( 'Domain name is invalid: ' . $ domain ) ; } $ this -> domain = $ domain ; }
Set the domain name

@param string $domain Domain name of object

@throws \Rcm\Exception\InvalidArgumentException If domain name
is invalid

@return void
Set the domain name