original_string: public function setXssProtection($mode = self::XSS_BLOCK)
      {
          $mode = (string)$mode;
  
          if ($mode === self::XSS_BLOCK) {
              $mode = self::XSS_ENABLED_BLOCK;
          }
  
          $this->checkValues($mode, [self::XSS_ENABLED, self::XSS_DISABLED, self::XSS_ENABLED_BLOCK]);
          $this->headers['x-xss-protection'] = $mode;
  
          return $this;
      }
code: public function setXssProtection($mode = self::XSS_BLOCK)
      {
          $mode = (string)$mode;
  
          if ($mode === self::XSS_BLOCK) {
              $mode = self::XSS_ENABLED_BLOCK;
          }
  
          $this->checkValues($mode, [self::XSS_ENABLED, self::XSS_DISABLED, self::XSS_ENABLED_BLOCK]);
          $this->headers['x-xss-protection'] = $mode;
  
          return $this;
      }
code_tokens: public function setXssProtection ( $ mode = self :: XSS_BLOCK ) { $ mode = ( string ) $ mode ; if ( $ mode === self :: XSS_BLOCK ) { $ mode = self :: XSS_ENABLED_BLOCK ; } $ this -> checkValues ( $ mode , [ self :: XSS_ENABLED , self :: XSS_DISABLED , self :: XSS_ENABLED_BLOCK ] ) ; $ this -> headers [ 'x-xss-protection' ] = $ mode ; return $ this ; }
docstring: X-XSS-Protection
  
  @link https://blogs.msdn.microsoft.com/ieinternals/2011/01/31/controlling-the-xss-filter
  @param string $mode Mode value. Available Values: '1', '0', 'block'
  @return $this
docstring_tokens: X - XSS - Protection