Neos\Flow\Http\Uri::getPort PHP Метод

getPort() публичный Метод

Returns the port of the URI
public getPort ( ) : integer
Результат integer Port
    public function getPort()
    {
        return $this->port;
    }

Usage Example

Пример #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());
 }
All Usage Examples Of Neos\Flow\Http\Uri::getPort