Size
implements
Stringable
Table of Contents
Interfaces
- Stringable
Constants
-
REGEXP_SIZE_VALIDATION
= '/^(?P<size>\d*\.?\d+)(?P<unit>pt|px|em)?$/i'
Properties
-
$size
: string
-
$unit
: string
-
$valid
: bool
Methods
-
__construct()
: mixed
-
__toString()
: string
-
size()
: string
-
unit()
: string
-
valid()
: bool
REGEXP_SIZE_VALIDATION
public
mixed
REGEXP_SIZE_VALIDATION
= '/^(?P<size>\d*\.?\d+)(?P<unit>pt|px|em)?$/i'
$size
protected
string
$size
= ''
$unit
protected
string
$unit
= ''
$valid
protected
bool
$valid
__construct()
public
__construct(string $size) : mixed
Parameters
-
$size
: string
-
__toString()
public
__toString() : string
size()
public
size() : string
unit()
public
unit() : string
valid()
public
valid() : bool