css-sanitizer
Classes to parse and sanitize CSS
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. More...
 
- Public Member Functions inherited from Wikimedia\CSS\Objects\CSSObject
 toTokenArray ()
 Return an array of Tokens that correspond to this object. More...
 
 toComponentValueArray ()
 Return an array of ComponentValues that correspond to this object. More...
 

Public Attributes

 $pos = -1
 

Protected Attributes

 $line = -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\QualifiedRule, and Wikimedia\CSS\Objects\AtRule.

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: