DragonBe\Vies\HeartBeat::setHost PHP Method

setHost() public method

public setHost ( string $host ) : HeartBeat
$host string
return HeartBeat
    public function setHost($host)
    {
        $this->host = $host;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @covers DragonBe\Vies\HeartBeat::setHost
  * @covers DragonBe\Vies\HeartBeat::getHost
  */
 public function testCanSetHost()
 {
     $host = 'www.example.com';
     $hb = new HeartBeat();
     $hb->setHost($host);
     $this->assertSame($host, $hb->getHost());
 }