WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

NodeExtension::setFlag() public WC 1.0

{} It's a method of the class: NodeExtension{}

No Hooks.

Return

$this.

Usage

$NodeExtension = new NodeExtension();
$NodeExtension->setFlag( $flag, $on );
$flag(int) (required)
-
$on *(true false) (required)*

Code of NodeExtension::setFlag() WC 5.4.1

<?php
public function setFlag($flag, $on)
{
    if ($on && !$this->hasFlag($flag)) {
        $this->flags += $flag;
    }

    if (!$on && $this->hasFlag($flag)) {
        $this->flags -= $flag;
    }

    return $this;
}