getPort() 공개 메소드

Returns the port of the URI
public getPort ( ) : integer
리턴 integer Port
예제 #1
0
 /**
  * @test
  */
 public function toStringOmitsStandardPorts()
 {
     $uri = new Uri('http://flow.neos.io');
     $this->assertSame('http://flow.neos.io', (string) $uri);
     $this->assertSame(80, $uri->getPort());
     $uri = new Uri('https://flow.neos.io');
     $this->assertSame('https://flow.neos.io', (string) $uri);
     $this->assertSame(443, $uri->getPort());
 }
예제 #2
0
파일: Request.php 프로젝트: neos/flow
 /**
  * Returns the port used for this request
  *
  * @return integer
  * @api
  */
 public function getPort()
 {
     return $this->uri->getPort();
 }