code: private function changeCodeHash($codeHash)
      {
          if (null !== $this->codeHash) {
              self::clearCache($this->codeHash);
          }
  
          $this->codeHash = $codeHash;
          self::setCache($this->codeHash, $this);
      }
docs: Change code hash.
  
  Remove old cache and set new one.
  
  @param string $codeHash new code hash