ValueObjects\Web\Url::getDomain PHP 메소드

getDomain() 공개 메소드

Returns the domain of the Url
public getDomain ( ) : ValueObjects\Web\Hostname | ValueObjects\Web\IPAddress
리턴 ValueObjects\Web\Hostname | ValueObjects\Web\IPAddress
    public function getDomain()
    {
        return clone $this->domain;
    }

Usage Example

예제 #1
0
 public function testGetDomain()
 {
     $domain = new Hostname('foo.com');
     $this->assertTrue($this->url->getDomain()->sameValueAs($domain));
 }