CalderaWP/objects

Name: objects

Owner: Caldera Labs

Description: Utility objects

Created: 2016-08-13 22:50:40.0

Updated: 2016-08-13 22:50:52.0

Pushed: 2017-10-28 01:55:00.0

Homepage: null

Size: 8

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.