* * 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 ClassNode extends AbstractNode { private $selector; private $name; /** * @param NodeInterface $selector * @param string $name */ public function __construct(NodeInterface $selector, $name) { $this->selector = $selector; $this->name = $name; } /** * @return NodeInterface */ public function getSelector() { return $this->selector; } /** * @return string */ public function getName() { return $this->name; } /** * {@inheritdoc} */ public function getSpecificity() { return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0)); } /** * {@inheritdoc} */ public function __toString() { return sprintf('%s[%s.%s]', $this->getNodeName(), $this->selector, $this->name); } } __halt_compiler();----SIGNATURE:----rv9JuQq7QZEyBNt9zRX9IzzJFCfYz2NAooS7bSvyefPWaGFslJFhBFedQxtzNkM9ug/EzSKeQJAcb8AK9HCX0Tx2L8sJNbaDoI+XWz2JJO7fhTmVUfuRSa2junDjblzqJdv9U3UTslaHGoC65YICNxWMtE5zP9nYi8MirBcOBRgDTEeS/vWdh/PAuukZfsmyPn1oDB9whod8DFthvCpBKgcxexwFzVaMl/1jc3gMtDGiPqEIzhhQFc0VX3pllD2oCEGyzudVGV63yY1iLSizwF5Vk5vRe/uvOIp4PzXMep41O6DG7XzyFLk+3uiqPL2qsGD/1VlypNBT5yvcY1v+X7ZGUpTCfPO0aIvRbpOLeRRT4QdLxpkNrJuUUw/46LJAK+NaKLQ7bbF5smyeQ6PsQztOjn0S6aGBzJ4HLqM6Qogwwbvl6tNW9oA69bNneYRCHU/f59UHkK1i6cRrd1cSxgeV0YDFmWnAlf0UifhcmuoyLnUWp7FAKzmf4Q+Hbh1AKmq8kCAyla23+z9Elns2cgtS7ekgUjst3ygF3px9ewnWeEFaGkhOGQhvbAtVB0KM/fhScmi/Sr/u/xsX4d4zOYKJcAiHiPzOgWH5XK+fBz1ob2fw80kLYMJx0/ggWX4jh0BzkS73jeSQIaDEElp8KuWoSlI025caTHJWFP+X3ZU=----ATTACHMENT:----NjI2NjU5NDE0OTE2NTI3MSA4NzQ3MDM3OTU1MTgzODE0IDI4OTg3OTEwNzk0MTM0Mzg=