Table of Contents
Properties
-
$description
: string|null
-
$format
: string
-
$name
: string
-
$size
: int
Methods
-
__construct()
: mixed
-
getDescription()
: string|null
-
getFormat()
: string
-
getName()
: string
-
getSize()
: int
-
toValue()
: DateTimeImmutable|null
-
validate()
: bool
$description
protected
string|null
$description
protected
string
$format
$name
protected
string
$name
$size
protected
int
$size
__construct()
public
__construct(string $name[, string $format = 'H:i:s' ][, string|null $description = null ]) : mixed
Parameters
-
$name
: string
-
-
$format
: string
= 'H:i:s'
-
-
$description
: string|null
= null
-
getDescription()
public
getDescription() : string|null
Return values
string|null
public
getFormat() : string
getName()
public
getName() : string
getSize()
public
getSize() : int
toValue()
public
toValue(string $slice) : DateTimeImmutable|null
Parameters
-
$slice
: string
-
Return values
DateTimeImmutable|null
validate()
public
validate(string $slice) : bool
Parameters
-
$slice
: string
-