Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value

CSSFunction::__constructpublicWC 1.0

Method of the class: CSSFunction{}

No Hooks.

Returns

null. Nothing (null).

Usage

$CSSFunction = new CSSFunction();
$CSSFunction->__construct( $sName, $aArguments, $sSeparator, $iLineNo );
$sName(string) (required)
.
$aArguments(required)
.
$sSeparator(string)
.
Default: ','
$iLineNo(int)
.

CSSFunction::__construct() code WC 10.5.0

public function __construct($sName, $aArguments, $sSeparator = ',', $iLineNo = 0)
{
    if ($aArguments instanceof RuleValueList) {
        $sSeparator = $aArguments->getListSeparator();
        $aArguments = $aArguments->getListComponents();
    }
    $this->sName = $sName;
    $this->setPosition($iLineNo); // TODO: redundant?
    parent::__construct($aArguments, $sSeparator, $iLineNo);
}