WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath

Translator::__construct() public WC 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$Translator = new Translator();
$Translator->__construct( $parser );
$parser(ParserInterface)
-
Default: null

Code of Translator::__construct() WC 5.4.1

<?php
public function __construct(ParserInterface $parser = null)
{
    $this->mainParser = $parser ?: new Parser();

    $this
        ->registerExtension(new Extension\NodeExtension())
        ->registerExtension(new Extension\CombinationExtension())
        ->registerExtension(new Extension\FunctionExtension())
        ->registerExtension(new Extension\PseudoClassExtension())
        ->registerExtension(new Extension\AttributeMatchingExtension())
    ;
}