css-sanitizer
Classes to parse and sanitize CSS
Loading...
Searching...
No Matches
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.
 
 getBlock ()
 Return the rule's block.
 
 setBlock (?SimpleBlock $block=null)
 Set the block.
 
 toTokenArray ()
 @inheritDoc
 
 toComponentValueArray ()
 @inheritDoc
 
 __toString ()
 
- Public Member Functions inherited from Wikimedia\CSS\Objects\Rule
 __construct (Token $token)
 
 getPosition ()
 Get the position of this Declaration in the input stream.
 

Protected Attributes

 $prelude
 
 $block
 
- Protected Attributes inherited from Wikimedia\CSS\Objects\Rule
 $line = -1
 
 $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

◆ toComponentValueArray()

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

@inheritDoc

Implements Wikimedia\CSS\Objects\CSSObject.

◆ toTokenArray()

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

@inheritDoc

Implements Wikimedia\CSS\Objects\CSSObject.


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