getHost() public method

Get the remote host of connection.
public getHost ( ) : string
return string
Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function handleError(NetworkConnectionInterface $conn, $ex)
 {
     if (!$this->isAddressBlocked($conn->getHost())) {
         $this->component->handleError($conn, $ex);
     }
 }
Example #2
0
 /**
  * @override
  * @inheritDoc
  */
 public function getHost()
 {
     return $this->connection->getHost();
 }