public function setHash($hash)
    {
        if (!preg_match("/[0-9a-f]{32}/", $hash)) {
            throw new InvalidArgumentException("Asset cache buster hash must be a valid md5 hash.");
        }
        $hash = trim($hash, '/');

        $this->hash = $hash;
    }
public function setHash($hash)
    {
        if (!preg_match("/[0-9a-f]{32}/", $hash)) {
            throw new InvalidArgumentException("Asset cache buster hash must be a valid md5 hash.");
        }
        $hash = trim($hash, '/');

        $this->hash = $hash;
    }
public function setHash ( $ hash ) { if ( ! preg_match ( "/[0-9a-f]{32}/" , $ hash ) ) { throw new InvalidArgumentException ( "Asset cache buster hash must be a valid md5 hash." ) ; } $ hash = trim ( $ hash , '/' ) ; $ this -> hash = $ hash ; }
Sets the hash

@param string $hash The hash to use to bust the cache
Sets the hash