css-sanitizer
Classes to parse and sanitize CSS
Wikimedia\CSS\Objects\QualifiedRule Class Reference

Represent a CSS qualified rule. More...

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

Public Member Functions

 __construct (Token $token=null)
 @inheritDoc
 
 __clone ()
 
 getPrelude ()
 Return the rule's prelude. More...
 
 getBlock ()
 Return the rule's block. More...
 
 setBlock (SimpleBlock $block=null)
 Set the block. More...
 
 toTokenArray ()
 @inheritDoc
 
 toComponentValueArray ()
 @inheritDoc
 
 __toString ()
 
- Public Member Functions inherited from Wikimedia\CSS\Objects\Rule
 getPosition ()
 Get the position of this Declaration in the input stream. More...
 

Protected Attributes

 $prelude
 
 $block
 
- Protected Attributes inherited from Wikimedia\CSS\Objects\Rule
 $line = -1
 

Additional Inherited Members

- Public Attributes inherited from Wikimedia\CSS\Objects\Rule
 $pos = -1
 

Detailed Description

Represent a CSS qualified rule.

Member Function Documentation

◆ getBlock()

Wikimedia\CSS\Objects\QualifiedRule::getBlock ( )

Return the rule's block.

Returns
SimpleBlock

◆ getPrelude()

Wikimedia\CSS\Objects\QualifiedRule::getPrelude ( )

Return the rule's prelude.

Returns
ComponentValueList

◆ setBlock()

Wikimedia\CSS\Objects\QualifiedRule::setBlock ( SimpleBlock  $block = null)

Set the block.

Parameters
SimpleBlock | null$block

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