css-sanitizer
Classes to parse and sanitize CSS
|
Represent an abstract CSS rule. More...
Public Member Functions | |
__construct (Token $token) | |
getPosition () | |
Get the position of this Declaration in the input stream. | |
Public Member Functions inherited from Wikimedia\CSS\Objects\CSSObject | |
toTokenArray () | |
Return an array of Tokens that correspond to this object. | |
toComponentValueArray () | |
Return an array of ComponentValues that correspond to this object. | |
Protected Attributes | |
$line = -1 | |
$pos = -1 | |
Represent an abstract CSS rule.
Wikimedia\CSS\Objects\Rule::__construct | ( | Token | $token | ) |
Token | $token | Token starting the rule |
Reimplemented in Wikimedia\CSS\Objects\AtRule, and Wikimedia\CSS\Objects\QualifiedRule.
Wikimedia\CSS\Objects\Rule::getPosition | ( | ) |
Get the position of this Declaration in the input stream.
Implements Wikimedia\CSS\Objects\CSSObject.