Skip to content

Commit

Permalink
Some more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Sep 9, 2022
1 parent 8b0d84c commit 202a63f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class WP_Style_Engine_CSS_Declarations {
*
* @since 6.1.0
*
* @param array $declarations An array of declarations (property => value pairs).
* @param string[] $declarations An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ).
*/
public function __construct( $declarations = array() ) {
$this->add_declarations( $declarations );
Expand Down Expand Up @@ -73,7 +73,7 @@ public function add_declaration( $property, $value ) {
}

/**
* Remove a single declaration.
* Removes a single declaration.
*
* @since 6.1.0
*
Expand Down Expand Up @@ -103,7 +103,7 @@ public function add_declarations( $declarations ) {
}

/**
* Remove multiple declarations.
* Removes multiple declarations.
*
* @since 6.1.0
*
Expand All @@ -119,7 +119,7 @@ public function remove_declarations( $properties = array() ) {
}

/**
* Get the declarations array.
* Gets the declarations array.
*
* @since 6.1.0
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ class WP_Style_Engine_CSS_Rule {
*
* @since 6.1.0
*
* @param string $selector The CSS selector.
* @param array|WP_Style_Engine_CSS_Declarations $declarations An array of declarations (property => value pairs),
* or a WP_Style_Engine_CSS_Declarations object.
* @param string $selector The CSS selector.
* @param string[]|WP_Style_Engine_CSS_Declarations $declarations An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ),
* or a WP_Style_Engine_CSS_Declarations object.
*/
public function __construct( $selector = '', $declarations = array() ) {
$this->set_selector( $selector );
$this->add_declarations( $declarations );
}

/**
* Set the selector.
* Sets the selector.
*
* @since 6.1.0
*
Expand Down

0 comments on commit 202a63f

Please sign in to comment.