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));
 }