public function check()
    {
        if (
            $this->portIsNotConnectable(
                $ipAddress = ip_address_from_hostname($this->target->hostname)
            )
        ) {
            return $this->makeFinalResult($ipAddress);
        }

        return $this->makeHealthyResult();
    }
public function check()
    {
        if (
            $this->portIsNotConnectable(
                $ipAddress = ip_address_from_hostname($this->target->hostname)
            )
        ) {
            return $this->makeFinalResult($ipAddress);
        }

        return $this->makeHealthyResult();
    }
public function check ( ) { if ( $ this -> portIsNotConnectable ( $ ipAddress = ip_address_from_hostname ( $ this -> target -> hostname ) ) ) { return $ this -> makeFinalResult ( $ ipAddress ) ; } return $ this -> makeHealthyResult ( ) ; }
Check the target.

@return Result
Check the target .