CSSMagic  1.0
Criação de CSS dinâmico sem uso de pré-processadores, apenas com PHP 7
Public Member Functions | Protected Attributes
Rule Class Reference

Public Member Functions

 __construct (string $rule_id, string $rule_value= '')
 
 getRuleId ()
 
 getRuleValue ()
 
 getRule ()
 
 setRuleValue (string $rule_value)
 

Protected Attributes

 $rule_id = ''
 
 $rule_value = ''
 

Detailed Description

Representa uma regra CSS

Definition at line 8 of file Rule.php.

Constructor & Destructor Documentation

__construct ( string  $rule_id,
string  $rule_value = '' 
)

Construtor da classe

Parameters
string$rule_idA tag CSS.
string$rule_valueOpcional. O valor da tag CSS.
Returns
void

Definition at line 26 of file Rule.php.

Member Function Documentation

getRule ( )

Retorna o para self::rule_id => self::rule_value

Returns
array

Definition at line 51 of file Rule.php.

getRuleId ( )

Retorna a tag CSS.

Returns
string

Definition at line 35 of file Rule.php.

getRuleValue ( )

Retorna o valor da tag CSS.

Returns
string

Definition at line 43 of file Rule.php.

setRuleValue ( string  $rule_value)

Define um valor para a tag CSS

Parameters
string$rule_valueO valro da tag CSS
Returns
void

Definition at line 60 of file Rule.php.

Field Documentation

$rule_id = ''
protected

A tag CSS

Definition at line 13 of file Rule.php.

$rule_value = ''
protected

O valor da tag CSS

Definition at line 18 of file Rule.php.


The documentation for this class was generated from the following file: