4 * @license https://opensource.org/licenses/Apache-2.0 Apache-2.0
7 namespace Wikimedia\CSS\Objects;
10 * Represent a list of CSS declarations and at-rules
12 class DeclarationOrAtRuleList extends CSSObjectList {
13 protected static $objectType = DeclarationOrAtRule::class;
15 protected function getSeparator( CSSObject $left, CSSObject $right = null ) {
17 if ( $left instanceof Declaration ) {
18 $ret[] = new Token( Token::T_SEMICOLON, [ 'significant' => (bool)$right ] );
21 $ret[] = new Token( Token::T_WHITESPACE, [ 'significant' => false ] );