Back to StatefulModelInterface class

Method getState

public mixed
getState
(mixed $property = null, mixed $default = null)
Method to get model state variables.
Parameters
  • string $property Optional parameter name
  • mixed $default Optional default value
Returns
  • mixed The property where specified, the state object where omitted
Since
  • 4.0.0

Method getState - Source code

/**
 * Method to get model state variables.
 *
 * @param   string  $property  Optional parameter name
 * @param   mixed   $default   Optional default value
 *
 * @return  mixed  The property where specified, the state object where omitted
 *
 * @since   4.0.0
 */
public function getState($property = null, $default = null);