CSSMagic  1.0
Criação de CSS dinâmico sem uso de pré-processadores, apenas com PHP 7
Rule.php
Go to the documentation of this file.
1 <?php
2 
3 namespace CSSMagic;
4 
8 class Rule{
9 
13  protected $rule_id = '';
14 
18  protected $rule_value = '';
19 
26  public function __construct(string $rule_id, string $rule_value = ''){
27  $this->rule_id = $rule_id;
28  $this->setRuleValue($rule_value);
29  }
30 
35  public function getRuleId() : string {
36  return $this->rule_id;
37  }
38 
43  public function getRuleValue() : string {
44  return $this->rule_value;
45  }
46 
51  public function getRule() : array {
52  return [$this->rule_id => $this->rule_value];
53  }
54 
60  public function setRuleValue(string $rule_value){
61  $this->rule_value = $rule_value;
62  }
63 }
getRuleValue()
Definition: Rule.php:43
__construct(string $rule_id, string $rule_value= '')
Definition: Rule.php:26
getRuleId()
Definition: Rule.php:35
setRuleValue(string $rule_value)
Definition: Rule.php:60
Definition: Rule.php:3