public getDomain ( ) : ValueObjects\Web\Hostname | ValueObjects\Web\IPAddress | ||
return | ValueObjects\Web\Hostname | ValueObjects\Web\IPAddress |
public function getDomain()
{
return clone $this->domain;
}
public function testGetDomain() { $domain = new Hostname('foo.com'); $this->assertTrue($this->url->getDomain()->sameValueAs($domain)); }