You are here

public function SassRuleNode::addSelectors in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/tree/SassRuleNode.php \SassRuleNode::addSelectors()

* Adds selector(s) to the rule. * If the selectors are to continue for the rule the selector must end in a comma *

Parameters

string selector:

1 call to SassRuleNode::addSelectors()
SassRuleNode::__construct in phamlp/sass/tree/SassRuleNode.php
* SassRuleNode constructor. *

File

phamlp/sass/tree/SassRuleNode.php, line 65

Class

SassRuleNode
SassRuleNode class. Represents a CSS rule. @package PHamlP @subpackage Sass.tree

Code

public function addSelectors($selectors) {
  $this->isContinued = substr($selectors, -1) === self::CONTINUED;
  $this->selectors = array_merge($this->selectors, $this
    ->explode($selectors));
}