Represent a CSS at-rule.
More...
|
| $name |
|
| $prelude |
|
| $block = null |
|
| $line = -1 |
|
| $pos = -1 |
|
◆ __construct()
Wikimedia\CSS\Objects\AtRule::__construct |
( |
Token | $token | ) |
|
◆ getBlock()
Wikimedia\CSS\Objects\AtRule::getBlock |
( |
| ) |
|
Return the at-rule's block.
- Returns
- SimpleBlock|null
◆ getName()
Wikimedia\CSS\Objects\AtRule::getName |
( |
| ) |
|
Return the at-rule's name, e.g.
"media"
- Returns
- string
◆ getPrelude()
Wikimedia\CSS\Objects\AtRule::getPrelude |
( |
| ) |
|
Return the at-rule's prelude.
- Returns
- ComponentValueList
◆ newFromName()
static Wikimedia\CSS\Objects\AtRule::newFromName |
( |
| $name | ) |
|
|
static |
Create an at-rule by name.
- Parameters
-
- Returns
- AtRule
◆ setBlock()
Wikimedia\CSS\Objects\AtRule::setBlock |
( |
?SimpleBlock | $block = null | ) |
|
Set the block.
- Parameters
-
◆ toComponentValueArray()
Wikimedia\CSS\Objects\AtRule::toComponentValueArray |
( |
| ) |
|
◆ toTokenArray()
Wikimedia\CSS\Objects\AtRule::toTokenArray |
( |
| ) |
|
The documentation for this class was generated from the following file: