ruleList = $rules ?: new RuleList(); } public function __clone() { $this->ruleList = clone( $this->ruleList ); } /** * @return RuleList */ public function getRuleList() { return $this->ruleList; } public function getPosition() { // Stylesheets don't really have a position return [ 0, 0 ]; } public function toTokenArray() { return $this->ruleList->toTokenArray(); } public function toComponentValueArray() { return $this->ruleList->toComponentValueArray(); } public function __toString() { return Util::stringify( $this ); } }