PHP 8.3.31
Preview: HashNode.php Size: 1.15 KB
/home/getspomw/royalsquad.us/vendor/symfony/css-selector/Node/HashNode.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>#<id>" 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 <jeanfrancois.simon@sensiolabs.com>
 *
 * @internal
 */
class HashNode extends AbstractNode
{
    public function __construct(
        private NodeInterface $selector,
        private string $id,
    ) {
    }

    public function getSelector(): NodeInterface
    {
        return $this->selector;
    }

    public function getId(): string
    {
        return $this->id;
    }

    public function getSpecificity(): Specificity
    {
        return $this->selector->getSpecificity()->plus(new Specificity(1, 0, 0));
    }

    public function __toString(): string
    {
        return \sprintf('%s[%s#%s]', $this->getNodeName(), $this->selector, $this->id);
    }
}

Directory Contents

Dirs: 0 × Files: 15

Name Size Perms Modified Actions
793 B lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.83 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.16 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.44 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.23 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
12.26 KB lrw-r--r-- 2026-04-27 10:18:33
Edit Download
1.65 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.15 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.45 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.23 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
692 B lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.27 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.37 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.70 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download
1.22 KB lrw-rw-rw- 2025-09-17 06:53:17
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).