/home/suroeste/public_html/wp-content/plugins/wpforms/vendor/symfony/css-selector/Node
NameSizeModeActions
AbstractNode.php9290644editdlrm
AttributeNode.php23970644editdlrm
ClassNode.php14100644editdlrm
CombinedSelectorNode.php17990644editdlrm
ElementNode.php15390644editdlrm
FunctionNode.php19190644editdlrm
HashNode.php13910644editdlrm
NegationNode.php14680644editdlrm
NodeInterface.php9340644editdlrm
PseudoNode.php14770644editdlrm
SelectorNode.php15790644editdlrm
Specificity.php19790644editdlrm
Edit: /home/suroeste/public_html/wp-content/plugins/wpforms/vendor/symfony/css-selector/Node/HashNode.php (1391B)
* * 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 "#" node. * * This component is a port of the Python cssselect library, * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. * * @author Jean-François Simon * * @internal */ class HashNode extends AbstractNode { private $selector; private $id; /** * @param string $id */ public function __construct(NodeInterface $selector, $id) { $this->selector = $selector; $this->id = $id; } /** * @return NodeInterface */ public function getSelector() { return $this->selector; } /** * @return string */ public function getId() { return $this->id; } /** * {@inheritdoc} */ public function getSpecificity() { return $this->selector->getSpecificity()->plus(new Specificity(1, 0, 0)); } /** * {@inheritdoc} */ public function __toString() { return sprintf('%s[%s#%s]', $this->getNodeName(), $this->selector, $this->id); } }