mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-22 01:55:56 -05:00
26 lines
580 B
PHP
26 lines
580 B
PHP
<?php
|
|
/**
|
|
* @file
|
|
* @license https://opensource.org/licenses/Apache-2.0 Apache-2.0
|
|
*/
|
|
|
|
namespace Wikimedia\CSS\Objects;
|
|
|
|
/**
|
|
* Represent a list of declarations
|
|
*/
|
|
class DeclarationList extends CSSObjectList {
|
|
protected static $objectType = Declaration::class;
|
|
|
|
protected function getSeparator( CSSObject $left, CSSObject $right = null ) {
|
|
if ( $right ) {
|
|
return [
|
|
new Token( Token::T_SEMICOLON ),
|
|
new Token( Token::T_WHITESPACE, [ 'significant' => false ] ),
|
|
];
|
|
} else {
|
|
return [ new Token( Token::T_SEMICOLON, [ 'significant' => false ] ) ];
|
|
}
|
|
}
|
|
}
|