Back to Joomla project (class list)

Class StatefulModelInterface - list of methods

Interface for a stateful model.
Package: Joomla\CMS\MVC\Model
Copyright: (C) 2019 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/MVC/Model/StatefulModelInterface.php
Project: Joomla

Method Summary

public mixed
(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
Show source code of this method: getState Source Code

public mixed
(mixed $property, mixed $value = null)

Method to set model state variables.
Parameters
  • string $property The name of the property.
  • mixed $value The value of the property to set or null.
Returns
  • mixed The previous value of the property or null if not set.
Since
  • 4.0.0
Show source code of this method: setState Source Code

Tags Summary

Since
4.0.0