Utility Objects
A few variations on the stdClass
object.
almostStd
Is very much like stdClass
, but only the defined propeties of class can be set/get.
almostStdImmutable
extends almostStd
and removes ability to modify the property values after instantiation. Properties have to be set by passing stdClass object to constructor.
almostStdValidatable
extends almostStd
and adds a validation callback to get/set.
Install
composer require calderawp/object