css-sanitizer
Classes to parse and sanitize CSS
Loading...
Searching...
No Matches
Wikimedia\CSS\Objects\Rule Class Reference

Represent an abstract CSS rule. More...

+ Inheritance diagram for Wikimedia\CSS\Objects\Rule:
+ Collaboration diagram for Wikimedia\CSS\Objects\Rule:

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
 

Detailed Description

Represent an abstract CSS rule.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\CSS\Objects\Rule::__construct ( Token $token)
Parameters
Token$tokenToken starting the rule

Reimplemented in Wikimedia\CSS\Objects\AtRule, and Wikimedia\CSS\Objects\QualifiedRule.

Member Function Documentation

◆ getPosition()

Wikimedia\CSS\Objects\Rule::getPosition ( )

Get the position of this Declaration in the input stream.

Returns
array [ $line, $pos ]

Implements Wikimedia\CSS\Objects\CSSObject.


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