<?php
namespace Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\Node;
if (!defined('ABSPATH')) exit;
class NegationNode extends AbstractNode
{
 private $selector;
 private $subSelector;
 public function __construct(NodeInterface $selector, NodeInterface $subSelector)
 {
 $this->selector = $selector;
 $this->subSelector = $subSelector;
 }
 public function getSelector(): NodeInterface
 {
 return $this->selector;
 }
 public function getSubSelector(): NodeInterface
 {
 return $this->subSelector;
 }
 public function getSpecificity(): Specificity
 {
 return $this->selector->getSpecificity()->plus($this->subSelector->getSpecificity());
 }
 public function __toString(): string
 {
 return sprintf('%s[%s:not(%s)]', $this->getNodeName(), $this->selector, $this->subSelector);
 }
}
