protected function checkData($method, &$data, $checksum)
    {
        $freshChecksum = $this->createChecksum($method, $data);
        if ($freshChecksum != $checksum) {
            throw new DataIntegrityException('Checksum of file '.$this->getUrl()." failed. ($freshChecksum != $checksum)");
        }
    }
protected function checkData($method, &$data, $checksum)
    {
        $freshChecksum = $this->createChecksum($method, $data);
        if ($freshChecksum != $checksum) {
            throw new DataIntegrityException('Checksum of file '.$this->getUrl()." failed. ($freshChecksum != $checksum)");
        }
    }
protected function checkData ( $ method , & $ data , $ checksum ) { $ freshChecksum = $ this -> createChecksum ( $ method , $ data ) ; if ( $ freshChecksum != $ checksum ) { throw new DataIntegrityException ( 'Checksum of file ' . $ this -> getUrl ( ) . " failed. ($freshChecksum != $checksum)" ) ; } }
Check the data integrity by the passed checksum. If invalid throw an
exception

@param string $method
@param string $data
@param string $checksum

@throws \Ems\Contracts\Core\Errors\DataCorruption
Check the data integrity by the passed checksum . If invalid throw an exception