| 1 | <?php |
||
| 19 | class CssRule |
||
| 20 | { |
||
| 21 | const SELECTOR_TYPE_ID = "#"; |
||
| 22 | |||
| 23 | const SELECTOR_TYPE_CLASS = "."; |
||
| 24 | |||
| 25 | private $selectorType; |
||
| 26 | |||
| 27 | private $selector; |
||
| 28 | |||
| 29 | private $directives; |
||
| 30 | |||
| 31 | public function __construct($selector, $selectorType = self::SELECTOR_TYPE_CLASS) |
||
| 37 | |||
| 38 | public function addDirective($property, $value) |
||
| 42 | |||
| 43 | public function __toString() |
||
| 48 | } |