DragonBe\Vies\HeartBeat::getPort PHP Method

getPort() public method

public getPort ( ) : integer
return integer
    public function getPort()
    {
        return $this->port;
    }

Usage Example

Beispiel #1
0
 /**
  * @covers DragonBe\Vies\HeartBeat::__construct
  */
 public function testCanOverrideSettingsAtConstruct()
 {
     $host = 'www.example.com';
     $port = 8080;
     $hb = new HeartBeat($host, $port);
     $this->assertSame($host, $hb->getHost());
     $this->assertSame($port, $hb->getPort());
 }