code: public function setContent($content)
      {
          @trigger_error(__METHOD__.' is deprecated and will be removed in 3.0.', E_USER_DEPRECATED);
          Tokens::setLegacyMode(true);
  
          if ($this->content === $content) {
              return;
          }
  
          $this->changed = true;
          $this->content = $content;
  
          // setting empty content is clearing the token
          if ('' === $content) {
              @trigger_error(__METHOD__.' shall not be used to clear token, use Tokens::clearAt instead.', E_USER_DEPRECATED);
              $this->id = null;
              $this->isArray = false;
          }
      }
docs: @param string $content
  
  @deprecated since 2.4