protected function createPing()
    {
        if (!isset($this->host)) {
            throw new \InvalidArgumentException(
                'Missing hostname, unable to conduct a ping request.'
            );
        }

        return new Ping($this->host, $this->ttl, $this->timeout);
    }
protected function createPing()
    {
        if (!isset($this->host)) {
            throw new \InvalidArgumentException(
                'Missing hostname, unable to conduct a ping request.'
            );
        }

        return new Ping($this->host, $this->ttl, $this->timeout);
    }
protected function createPing ( ) { if ( ! isset ( $ this -> host ) ) { throw new \ InvalidArgumentException ( 'Missing hostname, unable to conduct a ping request.' ) ; } return new Ping ( $ this -> host , $ this -> ttl , $ this -> timeout ) ; }
Create a ping instance.

@throws \InvalidArgumentException

@return \JJG\Ping
Return the ping instance.
Create a ping instance .