HeaderBag::contains()

bool contains(string $key, string $value) Returns true if the given HTTP header contains the given value. Parameters string $key The HTTP header name string $value The HTTP value Return Value bool true if the value is contained in the header, false otherwise

HeaderBag::all()

array all() Returns the headers. Return Value array An array of headers

HeaderBag::addCacheControlDirective()

addCacheControlDirective(string $key, mixed $value = true) Adds a custom Cache-Control directive. Parameters string $key The Cache-Control directive name mixed $value The Cache-Control directive value

HeaderBag::add()

add(array $headers) Adds new headers the current HTTP headers set. Parameters array $headers An array of HTTP headers

HashNode::getSpecificity()

Specificity getSpecificity() Returns node's specificity. Return Value Specificity

HashNode::getSelector()

NodeInterface getSelector() Return Value NodeInterface

HashNode::getId()

string getId() Return Value string

HashParser

class HashParser implements ParserInterface CSS selector hash parser shortcut. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Details SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Parameters string $source Return

HandlerInterface

interface HandlerInterface CSS selector handler interface. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods bool handle(Reader $reader, TokenStream $stream) Details bool handle(Reader $reader, TokenStream $stream) Parameters Reader $reader TokenStream $stream Return Value bool

HashNode

class HashNode extends AbstractNode Represents a "#" node. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods string getNodeName() from AbstractNode __construct(NodeInterface $selector, string $id) NodeInterface getSelector() string getId() Specificity getSpecificity() Returns node's specificity. string __toString() Returns node's string representation. Details