Import
in package
implements
AtRule, Positionable
Uses
Position
Class representing an `@import` rule.
Interfaces, Classes and Traits
- AtRule
- Positionable
- Represents a CSS item that may have a position in the source CSS document (line number and possibly column number).
Table of Contents
- $oLocation : URL
- $sMediaQuery : string
- __construct() : mixed
- __toString() : string
- addComments() : void
- atRuleArgs() : array<int, \Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS\Value\URL|string>
- atRuleName() : string
- getComments() : array<array-key, Comment>
- getLocation() : URL
- getMediaQuery() : string
- render() : string
- setComments() : void
- setLocation() : void
Properties
$oLocation
private
URL
$oLocation
$sMediaQuery
private
string
$sMediaQuery
Methods
__construct()
public
__construct(URL $oLocation, string $sMediaQuery, int $iLineNo) : mixed
Parameters
- $oLocation : URL
- $sMediaQuery : string
- $iLineNo : int
Return values
mixed —__toString()
public
__toString() : string
Tags
Return values
string —addComments()
public
addComments(array<array-key, Comment> $aComments) : void
Parameters
- $aComments : array<array-key, Comment>
Return values
void —atRuleArgs()
public
atRuleArgs() : array<int, \Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS\Value\URL|string>
Return values
array<int, \Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS\Value\URL|string> —atRuleName()
public
atRuleName() : string
Return values
string —getComments()
public
getComments() : array<array-key, Comment>
Return values
array<array-key, Comment> —getLocation()
public
getLocation() : URL
Return values
URL —getMediaQuery()
public
getMediaQuery() : string
Return values
string —render()
public
render(OutputFormat|null $oOutputFormat) : string
Parameters
- $oOutputFormat : OutputFormat|null
Return values
string —setComments()
public
setComments(array<array-key, Comment> $aComments) : void
Parameters
- $aComments : array<array-key, Comment>
Return values
void —setLocation()
public
setLocation(URL $oLocation) : void
Parameters
- $oLocation : URL
