Constructor.
Parameters
-
$selectorstring optional -
The CSS selector.
Default:
'' -
$declarationsstring[] | WP_Style_Enguine_CSS_Declarations optional -
An associative array of CSS definitions, e.g.
array( "$property" => "$value", "$property" => "$value" ), or a WP_Style_Enguine_CSS_Declarations object.
Default:
array() -
$rules_groupstring optional -
A parent CSS selector in the case of nested CSS, or a CSS nested @rule, such as
@media (min-width: 80rem)or@layer module.Default:
''
Source
public function __construct( $selector = '', $declarations = array(), $rules_group = '' ) {
$this->set_selector( $selector );
$this->add_declarations( $declarations );
$this->set_rules_group( $rules_group );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.