protected function getPingInstance()
    {
        if (empty($this->port)) {
            throw new \InvalidArgumentException(
                'Missing host port, ensure you called setPort().'
            );
        }
        $instance = $this->createPing();
        $instance
            ->setPort($this->port);

        return $instance;
    }
protected function getPingInstance()
    {
        if (empty($this->port)) {
            throw new \InvalidArgumentException(
                'Missing host port, ensure you called setPort().'
            );
        }
        $instance = $this->createPing();
        $instance
            ->setPort($this->port);

        return $instance;
    }
protected function getPingInstance ( ) { if ( empty ( $ this -> port ) ) { throw new \ InvalidArgumentException ( 'Missing host port, ensure you called setPort().' ) ; } $ instance = $ this -> createPing ( ) ; $ instance -> setPort ( $ this -> port ) ; return $ instance ; }
Get the ping instance.

@throws \InvalidArgumentException

@return \JJG\Ping
Return the ping instance.
Get the ping instance .