Jackalope\Query\QOM\ChildNodeConstraint::__construct PHP Method

__construct() public method

Create a new child node constraint
public __construct ( string $selectorName, string $parentPath )
$selectorName string
$parentPath string parent path the node must be child of
    public function __construct($selectorName, $parentPath)
    {
        if (null === $selectorName) {
            throw new \InvalidArgumentException('Required argument selectorName may not be null.');
        }
        $this->parentPath = $parentPath;
        $this->selectorName = $selectorName;
    }