getDomain() 공개 메소드

Returns the domain of the Url
public getDomain ( ) : ValueObjects\Web\Hostname | ValueObjects\Web\IPAddress
리턴 ValueObjects\Web\Hostname | ValueObjects\Web\IPAddress
예제 #1
0
 public function testGetDomain()
 {
     $domain = new Hostname('foo.com');
     $this->assertTrue($this->url->getDomain()->sameValueAs($domain));
 }