ValueObjects\Web\Url::getDomain PHP Méthode

getDomain() public méthode

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

Usage Example

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