*/ class DeclarationOrAtRuleList extends CSSObjectList { /** * @var string */ protected static $objectType = DeclarationOrAtRule::class; /** @inheritDoc */ protected function getSeparator( CSSObject $left, ?CSSObject $right = null ) { $ret = []; if ( $left instanceof Declaration ) { $ret[] = new Token( Token::T_SEMICOLON, [ 'significant' => (bool)$right ] ); } if ( $right ) { $ret[] = new Token( Token::T_WHITESPACE, [ 'significant' => false ] ); } return $ret; } }