DateCell
class DateCell extends Cell (View source)
DateCell Class
Wrapper object to implement JsonSerializable on the Carbon object.
Methods
__construct(
Carbon $carbon,
string $format = '',
array $options = array())
Creates a new DateCell object from a Carbon object.
array
jsonSerialize()
Custom serialization of the Carbon date.
static
Cell
parseString(
string $dateTimeString,
string $dateTimeFormat = '')
Parses a datetime string with or without a datetime format.
string
__toString()
Custom string output of the Carbon date.
Details
at line 35
__construct(
Carbon $carbon,
string $format = '',
array $options = array())
Creates a new DateCell object from a Carbon object.
in
Cell at line 81
mixed
getValue()
Returns the value.
in
Cell at line 91
string
getFormat()
Returns the string format of the value.
in
Cell at line 101
array
getOptions()
Returns the cell customization options.
at line 95
array
jsonSerialize()
Custom serialization of the Carbon date.
at line 53
static
Cell
parseString(
string $dateTimeString,
string $dateTimeFormat = '')
Parses a datetime string with or without a datetime format.
Uses Carbon to create the values for the DateCell.
at line 77
string
__toString()
Custom string output of the Carbon date.