/opt/alt/php55/usr/share/pear/Symfony/Component/CssSelector/Node
NameSizeModeActions
AbstractNode.php9200644editdlrm
AttributeNode.php26350644editdlrm
ClassNode.php15190644editdlrm
CombinedSelectorNode.php19920644editdlrm
ElementNode.php16060644editdlrm
FunctionNode.php20750644editdlrm
HashNode.php15000644editdlrm
NegationNode.php16340644editdlrm
NodeInterface.php9200644editdlrm
PseudoNode.php15860644editdlrm
SelectorNode.php16840644editdlrm
Specificity.php15630644editdlrm
Edit: /opt/alt/php55/usr/share/pear/Symfony/Component/CssSelector/Node/HashNode.php (1500B)
* * 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 cssselector library, * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. * * @author Jean-François Simon */ class HashNode extends AbstractNode { /** * @var NodeInterface */ private $selector; /** * @var string */ private $id; /** * @param NodeInterface $selector * @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); } }