public function add_rules( $css_rules ) { if ( !
is_array( $css_rules ) ) { $css_rules = array
( $css_rules );
} foreach ( $css_rules as $rule ) { $selector =
$rule->
get_selector();
if ( isset( $this->css_rules
[ $selector ] ) ) { $this->css_rules
[ $selector ]->
add_declarations( $rule->
get_declarations() );
continue;
} $this->css_rules
[ $rule->
get_selector() ] =
$rule;
} return $this;
} /**
* Gets the CSS rules as a string.
*
* @since 6.1.0
*
* @param array $options {
* Optional. An array of options. Default empty array.
*
* @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
* Default true.
* @type bool $prettify Whether to add new lines and indents to output.
* Defaults to whether the `SCRIPT_DEBUG` constant is defined.
* }
* @return string The computed CSS.
*/