src/Request/AbstractResponse.php
protected function verifyDataFormat()
	{
		// TODO validate data and formats
		if(!XSDDateTime::validateXSDDateTime($this->headers[SONIC_HEADER__DATE]))
			throw new MalformedRequestHeaderException("Malformed response: Header " . SONIC_HEADER__DATE . " malformed: " . $this->headers[SONIC_HEADER__DATE]);
		if(!XSDDateTime::validateXSDDateTime($this->headers[SONIC_HEADER__DATE]))
			throw new MalformedRequestHeaderException("Malformed response: Header " . SONIC_HEADER__DATE . " malformed: " . $this->headers[SONIC_HEADER__DATE]);

		return true;
	}
protected function verifyDataFormat()
	{
		// TODO validate data and formats
		if(!XSDDateTime::validateXSDDateTime($this->headers[SONIC_HEADER__DATE]))
			throw new MalformedRequestHeaderException("Malformed response: Header " . SONIC_HEADER__DATE . " malformed: " . $this->headers[SONIC_HEADER__DATE]);
		if(!XSDDateTime::validateXSDDateTime($this->headers[SONIC_HEADER__DATE]))
			throw new MalformedRequestHeaderException("Malformed response: Header " . SONIC_HEADER__DATE . " malformed: " . $this->headers[SONIC_HEADER__DATE]);

		return true;
	}
protected function verifyDataFormat ( ) { // TODO validate data and formats
 if ( ! XSDDateTime :: validateXSDDateTime ( $ this -> headers [ SONIC_HEADER__DATE ] ) ) throw new MalformedRequestHeaderException ( "Malformed response: Header " . SONIC_HEADER__DATE . " malformed: " . $ this -> headers [ SONIC_HEADER__DATE ] ) ; if ( ! XSDDateTime :: validateXSDDateTime ( $ this -> headers [ SONIC_HEADER__DATE ] ) ) throw new MalformedRequestHeaderException ( "Malformed response: Header " . SONIC_HEADER__DATE . " malformed: " . $ this -> headers [ SONIC_HEADER__DATE ] ) ; return true ; }
verifies the format and content of the response

@throws MalformedRequestHeaderException on corrupt data
verifies the format and content of the response