calderawp/object

Utility abstract objects

1.0.1 2017-01-08 22:09 UTC

This package is auto-updated.

Last update: 2024-10-08 06:32:38 UTC


README

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

Copyright 2016 CalderaWP LLC & Josh Pollock. Licensed under the terms of the GNU GPL version 2 or later. Please share with your neighbor.