public function getHash() {
		$data = $this->getData();
		if( is_object( $data ) ) {
			if( method_exists( $data, 'getHash' ) ) {
				return $data->getHash();
			} else {
				return sha1( serialize( $data ) );
			}
		}
		if( is_string( $data ) ) {
			return sha1( $data );
		}
		throw new LogicException( "Cant get hash for data of type: " . gettype( $data ) );
	}
public function getHash() {
		$data = $this->getData();
		if( is_object( $data ) ) {
			if( method_exists( $data, 'getHash' ) ) {
				return $data->getHash();
			} else {
				return sha1( serialize( $data ) );
			}
		}
		if( is_string( $data ) ) {
			return sha1( $data );
		}
		throw new LogicException( "Cant get hash for data of type: " . gettype( $data ) );
	}
public function getHash ( ) { $ data = $ this -> getData ( ) ; if ( is_object ( $ data ) ) { if ( method_exists ( $ data , 'getHash' ) ) { return $ data -> getHash ( ) ; } else { return sha1 ( serialize ( $ data ) ) ; } } if ( is_string ( $ data ) ) { return sha1 ( $ data ) ; } throw new LogicException ( "Cant get hash for data of type: " . gettype ( $ data ) ) ; }
Returns a sha1 hash of the content

@throws LogicException
@return string
Returns a sha1 hash of the content