trait Serializes (View source)

Methods

array
__serialize()

Prepare the instance values for serialization.

mixed
getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

void
__unserialize(array $values)

Restore the model after serialization.

Details

array __serialize()

Prepare the instance values for serialization.

Return Value

array

protected mixed getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

Parameters

ReflectionProperty $property

Return Value

mixed

void __unserialize(array $values)

Restore the model after serialization.

Parameters

array $values

Return Value

void