X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/symfony/css-selector/Node
home
/
prisjneg
/
public_html
/
vendor
/
symfony
/
css-selector
/
Node
/
📁
..
📄
AbstractNode.php
(793 B)
📄
AttributeNode.php
(1.83 KB)
📄
ClassNode.php
(1.16 KB)
📄
CombinedSelectorNode.php
(1.44 KB)
📄
ElementNode.php
(1.23 KB)
📄
FunctionNode.php
(1.65 KB)
📄
HashNode.php
(1.15 KB)
📄
MatchingNode.php
(1.45 KB)
📄
NegationNode.php
(1.23 KB)
📄
NodeInterface.php
(692 B)
📄
PseudoNode.php
(1.27 KB)
📄
SelectorNode.php
(1.37 KB)
📄
Specificity.php
(1.7 KB)
📄
SpecificityAdjustmentNode.php
(1.22 KB)
Editing: MatchingNode.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\CssSelector\Node; /** * Represents a "<selector>:is(<subSelectorList>)" node. * * This component is a port of the Python cssselect library, * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. * * @author Hubert Lenoir <lenoir.hubert@gmail.com> * * @internal */ class MatchingNode extends AbstractNode { /** * @param array<NodeInterface> $arguments */ public function __construct( public readonly NodeInterface $selector, public readonly array $arguments = [], ) { } public function getSpecificity(): Specificity { $argumentsSpecificity = array_reduce( $this->arguments, fn ($c, $n) => 1 === $n->getSpecificity()->compareTo($c) ? $n->getSpecificity() : $c, new Specificity(0, 0, 0), ); return $this->selector->getSpecificity()->plus($argumentsSpecificity); } public function __toString(): string { $selectorArguments = array_map( fn ($n): string => ltrim((string) $n, '*'), $this->arguments, ); return \sprintf('%s[%s:is(%s)]', $this->getNodeName(), $this->selector, implode(', ', $selectorArguments)); } }
Upload File
Create Folder