original_string: protected function setPreview($preview)
      {
          if (!($preview instanceof TemplateInterface) && !is_string($preview) && ($preview !== null)) {
              throw new \RuntimeException('Invalid preview preview', 1481368492);
          }
          $this->preview = $preview;
      }
code: protected function setPreview($preview)
      {
          if (!($preview instanceof TemplateInterface) && !is_string($preview) && ($preview !== null)) {
              throw new \RuntimeException('Invalid preview preview', 1481368492);
          }
          $this->preview = $preview;
      }
code_tokens: protected function setPreview ( $ preview ) { if ( ! ( $ preview instanceof TemplateInterface ) && ! is_string ( $ preview ) && ( $ preview !== null ) ) { throw new \ RuntimeException ( 'Invalid preview preview' , 1481368492 ) ; } $ this -> preview = $ preview ; }
docstring: Set a preview template
  
  @param TemplateInterface|string|null $preview Preview template
docstring_tokens: Set a preview template