private function getErrorMessage(array $result)
    {
        $errorMessage = '';
        if (isset($result['errors'][0]['property']) && isset($result['errors'][0]['message'])) {
            $errorMessage = $result['errors'][0]['property'] . ': ' . $result['errors'][0]['message'];
        }
        return $errorMessage;
    }
private function getErrorMessage(array $result)
    {
        $errorMessage = '';
        if (isset($result['errors'][0]['property']) && isset($result['errors'][0]['message'])) {
            $errorMessage = $result['errors'][0]['property'] . ': ' . $result['errors'][0]['message'];
        }
        return $errorMessage;
    }
private function getErrorMessage ( array $ result ) { $ errorMessage = '' ; if ( isset ( $ result [ 'errors' ] [ 0 ] [ 'property' ] ) && isset ( $ result [ 'errors' ] [ 0 ] [ 'message' ] ) ) { $ errorMessage = $ result [ 'errors' ] [ 0 ] [ 'property' ] . ': ' . $ result [ 'errors' ] [ 0 ] [ 'message' ] ; } return $ errorMessage ; }
Get error message from the response array.

@param array $result

@return null|string
Get error message from the response array .