DateTime
extends AbstractType
in package
implements
TypeInterface
Table of Contents
Interfaces
Properties
- $definition : stdclass
- $value : DateTime|null
Methods
- __construct() : mixed
- id() : string
- script() : string
- use gqlname to select the kind of script you need.
- value() : mixed
- deleted() : bool
- editable() : bool
- label() : string
- options() : array<string|int, mixed>
- required() : bool
- type() : string
- validate() : mixed
Properties
$definition
private
stdclass
$definition
$value
private
DateTime|null
$value
= null
Methods
__construct()
public
__construct(stdclass $definition) : mixed
Parameters
- $definition : stdclass
id()
public
id() : string
Return values
stringscript()
use gqlname to select the kind of script you need.
public
script([mixed $gqlname = null ]) : string
because sometimes a Data Type has a different representation in different gqls
Parameters
- $gqlname : mixed = null
Return values
stringvalue()
public
value([mixed $value = null ]) : mixed
Parameters
- $value : mixed = null
deleted()
protected
deleted() : bool
Return values
booleditable()
protected
editable() : bool
Return values
boollabel()
protected
label() : string
Return values
stringoptions()
protected
options() : array<string|int, mixed>
Return values
array<string|int, mixed>required()
protected
required() : bool
Return values
booltype()
protected
type() : string
Return values
stringvalidate()
private
validate(mixed $value) : mixed
Parameters
- $value : mixed