Example #1
0
 /**
  * @inheritdoc
  */
 public function accept(VisitorInterface $visitor)
 {
     $this->combinator = $visitor->visit($this->combinator);
     if (is_object($this->value)) {
         $this->value = $visitor->visit($this->value);
     }
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function accept(VisitorInterface $visitor)
 {
     if ($this->features) {
         $this->features = $visitor->visit($this->features);
     }
     $this->rules = $visitor->visitArray($this->rules);
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function accept(VisitorInterface $visitor)
 {
     if ($this->selector) {
         $this->selector = $visitor->visit($this->selector);
     }
     if ($this->arguments) {
         $this->arguments = $visitor->visitArray($this->arguments);
     }
 }
Example #4
0
 /**
  * @inheritdoc
  */
 public function accept(VisitorInterface $visitor)
 {
     $this->elements = $visitor->visitArray($this->elements);
     $this->extendList = $visitor->visitArray($this->extendList);
     if ($this->condition) {
         $this->condition = $visitor->visit($this->condition);
     }
 }
Example #5
0
 /**
  * {@inheritdoc}
  */
 public function accept(VisitorInterface $visitor)
 {
     if ($this->paths) {
         $visitor->visitArray($this->paths, true);
     } elseif ($this->selectors) {
         $this->selectors = $visitor->visitArray($this->selectors);
     }
     if ($this->rules) {
         $this->rules = $visitor->visitArray($this->rules);
     }
 }
Example #6
0
 /**
  * {@inheritdoc}
  */
 public function accept(VisitorInterface $visitor)
 {
     if ($this->params) {
         $this->params = $visitor->visitArray($this->params);
     }
     $this->rules = $visitor->visitArray($this->rules);
     if ($this->condition) {
         $this->condition = $visitor->visit($this->condition);
     }
 }
Example #7
0
File: Node.php Project: jxav/iless
 /**
  * @inheritdoc
  */
 public function accept(VisitorInterface $visitor)
 {
     $this->value = $visitor->visit($this->value);
 }
Example #8
0
 /**
  * @inheritdoc
  */
 public function accept(VisitorInterface $visitor)
 {
     if ($this->args) {
         $this->args = $visitor->visitArray($this->args);
     }
 }
Example #9
0
 /**
  * {@inheritdoc}
  */
 public function accept(VisitorInterface $visitor)
 {
     $this->ruleset = $visitor->visit($this->ruleset);
 }
Example #10
0
 /**
  * {@inheritdoc}
  */
 public function accept(VisitorInterface $visitor)
 {
     if ($this->rules) {
         $this->rules = $visitor->visitArray($this->rules);
     }
     if ($this->value) {
         $this->value = $visitor->visit($this->value);
     }
 }
Example #11
0
 /**
  * {@inheritdoc}
  */
 public function accept(VisitorInterface $visitor)
 {
     $this->operands = $visitor->visit($this->operands);
 }
Example #12
0
 /**
  * @inheritdoc
  */
 public function accept(VisitorInterface $visitor)
 {
     $this->selector = $visitor->visit($this->selector);
 }
Example #13
0
 /**
  * @inheritdoc
  */
 public function accept(VisitorInterface $visitor)
 {
     if ($this->features) {
         $this->features = $visitor->visit($this->features);
     }
     $this->path = $visitor->visit($this->path);
     if (!$this->getOption('plugin') && !$this->getOption('inline') && $this->root) {
         $this->root = $visitor->visit($this->root);
     }
 }
Example #14
0
 /**
  * @inheritdoc
  */
 public function accept(VisitorInterface $visitor)
 {
     $this->unit = $visitor->visit($this->unit);
 }