public function getErrors() {
        $result = array();

        if (count($this->errors) > 0) {
            if (isset($this->errors['common'])) {
                $result['common'] = $this->errors['common'];
            }
            if (isset($this->errors['fields'])) {
                foreach ($this->errors['fields'] as $key => $value) {
                    $result[$key] = $value;
                }
            }
        }
        
        return $result;
    }
public function getErrors() {
        $result = array();

        if (count($this->errors) > 0) {
            if (isset($this->errors['common'])) {
                $result['common'] = $this->errors['common'];
            }
            if (isset($this->errors['fields'])) {
                foreach ($this->errors['fields'] as $key => $value) {
                    $result[$key] = $value;
                }
            }
        }
        
        return $result;
    }
public function getErrors ( ) { $ result = array ( ) ; if ( count ( $ this -> errors ) > 0 ) { if ( isset ( $ this -> errors [ 'common' ] ) ) { $ result [ 'common' ] = $ this -> errors [ 'common' ] ; } if ( isset ( $ this -> errors [ 'fields' ] ) ) { foreach ( $ this -> errors [ 'fields' ] as $ key => $ value ) { $ result [ $ key ] = $ value ; } } } return $ result ; }
Get errors received from Textmagic API

@return array
Get errors received from Textmagic API