original_string: public function setTemplating($templating)
      {
          if (null !== $templating && !$templating instanceof EngineInterface && !$templating instanceof Environment) {
              throw new \InvalidArgumentException('The hinclude rendering strategy needs an instance of Twig\Environment or Symfony\Component\Templating\EngineInterface');
          }
  
          if ($templating instanceof EngineInterface) {
              @trigger_error(sprintf('Using a "%s" instance for "%s" is deprecated since version 4.3; use a \Twig\Environment instance instead.', EngineInterface::class, __CLASS__), E_USER_DEPRECATED);
          }
  
          $this->templating = $templating;
      }
code: public function setTemplating($templating)
      {
          if (null !== $templating && !$templating instanceof EngineInterface && !$templating instanceof Environment) {
              throw new \InvalidArgumentException('The hinclude rendering strategy needs an instance of Twig\Environment or Symfony\Component\Templating\EngineInterface');
          }
  
          if ($templating instanceof EngineInterface) {
              @trigger_error(sprintf('Using a "%s" instance for "%s" is deprecated since version 4.3; use a \Twig\Environment instance instead.', EngineInterface::class, __CLASS__), E_USER_DEPRECATED);
          }
  
          $this->templating = $templating;
      }
code_tokens: public function setTemplating ( $ templating ) { if ( null !== $ templating && ! $ templating instanceof EngineInterface && ! $ templating instanceof Environment ) { throw new \ InvalidArgumentException ( 'The hinclude rendering strategy needs an instance of Twig\Environment or Symfony\Component\Templating\EngineInterface' ) ; } if ( $ templating instanceof EngineInterface ) { @ trigger_error ( sprintf ( 'Using a "%s" instance for "%s" is deprecated since version 4.3; use a \Twig\Environment instance instead.' , EngineInterface :: class , __CLASS__ ) , E_USER_DEPRECATED ) ; } $ this -> templating = $ templating ; }
docstring: Sets the templating engine to use to render the default content.
  
  @param EngineInterface|Environment|null $templating An EngineInterface or an Environment instance
  
  @throws \InvalidArgumentException
docstring_tokens: Sets the templating engine to use to render the default content .