ValueObjects\Web\Url::getPort PHP Method

getPort() public method

Returns the port of the Url
public getPort ( ) : PortNumberInterface
return PortNumberInterface
    public function getPort()
    {
        return clone $this->port;
    }

Usage Example

Esempio n. 1
0
 public function testGetPort()
 {
     $port = new PortNumber(80);
     $this->assertTrue($this->url->getPort()->sameValueAs($port));
 }