original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Sets the hash
  
  @param string $hash The hash to use to bust the cache
docstring_tokens: Sets the hash