SimpleSoftwareIO\SMS\Drivers\NexmoSMS::hasError PHP Method

hasError() protected method

Checks if the transaction has an error
protected hasError ( $body ) : boolean
$body
return boolean
    protected function hasError($body)
    {
        if ($this->hasAResponseMessage($body) && $this->hasProperty($this->getFirstMessage($body), 'status')) {
            $firstMessage = $this->getFirstMessage($body);
            return (int) $firstMessage['status'] !== 0;
        }
        return false;
    }