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.

mixed
getValue()

Returns the value.

from  Cell
string
getFormat()

Returns the string format of the value.

from  Cell
array
getOptions()

Returns the cell customization options.

from  Cell
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.

Parameters

Carbon $carbon
string $format
array $options

Exceptions

InvalidFunctionParam

in Cell at line 81
mixed getValue()

Returns the value.

Return Value

mixed

in Cell at line 91
string getFormat()

Returns the string format of the value.

Return Value

string

in Cell at line 101
array getOptions()

Returns the cell customization options.

Return Value

array

at line 95
array jsonSerialize()

Custom serialization of the Carbon date.

Return Value

array

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.

Parameters

string $dateTimeString
string $dateTimeFormat

Return Value

Cell

Exceptions

FailedCarbonParsing
InvalidDateTimeFormat
InvalidDateTimeString

at line 77
string __toString()

Custom string output of the Carbon date.

Return Value

string