getDomain() public method

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