ValueObjects\Web\Url::getPort PHP 메소드

getPort() 공개 메소드

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

Usage Example

예제 #1
0
 public function testGetPort()
 {
     $port = new PortNumber(80);
     $this->assertTrue($this->url->getPort()->sameValueAs($port));
 }