original_string: public function setXFrameOptions($option = self::SAMEORIGIN, $url = null)
      {
          $this->checkValues($option, [self::DENY, self::SAMEORIGIN, self::ALLOW_FROM]);
  
          if ($option === self::ALLOW_FROM) {
              if (empty($url)) {
                  throw new InvalidArgumentException('The 2nd arg $url can not be empty when `allow-from` is used');
              }
              $option .= ' ' . $url;
          }
  
          $this->headers['x-frame-options'] = $option;
  
          return $this;
      }
code: public function setXFrameOptions($option = self::SAMEORIGIN, $url = null)
      {
          $this->checkValues($option, [self::DENY, self::SAMEORIGIN, self::ALLOW_FROM]);
  
          if ($option === self::ALLOW_FROM) {
              if (empty($url)) {
                  throw new InvalidArgumentException('The 2nd arg $url can not be empty when `allow-from` is used');
              }
              $option .= ' ' . $url;
          }
  
          $this->headers['x-frame-options'] = $option;
  
          return $this;
      }
code_tokens: public function setXFrameOptions ( $ option = self :: SAMEORIGIN , $ url = null ) { $ this -> checkValues ( $ option , [ self :: DENY , self :: SAMEORIGIN , self :: ALLOW_FROM ] ) ; if ( $ option === self :: ALLOW_FROM ) { if ( empty ( $ url ) ) { throw new InvalidArgumentException ( 'The 2nd arg $url can not be empty when `allow-from` is used' ) ; } $ option .= ' ' . $ url ; } $ this -> headers [ 'x-frame-options' ] = $ option ; return $ this ; }
docstring: X-Frame-Options
  
  @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
  @param string $option Option value. Available Values: 'deny', 'sameorigin', 'allow-from <uri>'
  @param string $url URL if mode is `allow-from`
  @return $this
docstring_tokens: X - Frame - Options