*/
class Translator implements TranslatorInterface
{
- /**
- * @var ParserInterface
- */
private $mainParser;
/**
private $shortcutParsers = array();
/**
- * @var Extension\ExtensionInterface
+ * @var Extension\ExtensionInterface[]
*/
private $extensions = array();
- /**
- * @var array
- */
private $nodeTranslators = array();
-
- /**
- * @var array
- */
private $combinationTranslators = array();
-
- /**
- * @var array
- */
private $functionTranslators = array();
-
- /**
- * @var array
- */
private $pseudoClassTranslators = array();
-
- /**
- * @var array
- */
private $attributeMatchingTranslators = array();
public function __construct(ParserInterface $parser = null)
/**
* Registers an extension.
*
- * @param Extension\ExtensionInterface $extension
- *
* @return $this
*/
public function registerExtension(Extension\ExtensionInterface $extension)
/**
* Registers a shortcut parser.
*
- * @param ParserInterface $shortcut
- *
* @return $this
*/
public function registerParserShortcut(ParserInterface $shortcut)
}
/**
- * @param NodeInterface $node
- *
* @return XPathExpr
*
* @throws ExpressionErrorException
}
/**
- * @param XPathExpr $xpath
- * @param FunctionNode $function
- *
* @return XPathExpr
*
* @throws ExpressionErrorException