WP_Style_Engine_CSS_Rule::__construct() – Constructor

You appear to be a bot. Output may be restricted

Description

Constructor

Usage

WP_Style_Engine_CSS_Rule::__construct( $selector, $declarations );

Parameters

$selector
( string ) optional – The CSS selector.
$declarations
( string[]|WP_Style_Engine_CSS_Declarations ) optional – An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ), or a WP_Style_Engine_CSS_Declarations object.

Returns

void

Source

File name: wordpress/wp-includes/style-engine/class-wp-style-engine-css-rule.php


Lines:

1 to 5 of 5
  public function __construct( $selector = '', $declarations = array() ) {
    $this->set_selector( $selector );
    $this->add_declarations( $declarations );
  }
 

 View on GitHub View on Trac