WooCommerce Code Reference

Size extends PrimitiveValue
in package

A `Size` consists of a numeric `size` value and a unit.

Table of Contents

$bIsColorComponent  : bool
$fSize  : float
$SIZE_UNITS  : array<int, array<string, string>>|null
$sUnit  : string|null
__construct()  : mixed
__toString()  : string
getSize()  : float
getUnit()  : string|null
isColorComponent()  : bool
isRelative()  : bool
isSize()  : false
Returns whether the number stored in this Size really represents a size (as in a length of something on screen).
render()  : string
setSize()  : mixed
setUnit()  : void
getSizeUnits()  : array<int, array<string, string>>
parseMicrosoftFilter()  : CSSFunction
parseUnicodeRangeValue()  : string

Properties

Methods