Common classes and traits used in many MensBeam projects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Dustin Wilson af4b8e72d5 Updated deps, added FauxReadOnly 2 years ago
lib Updated deps, added FauxReadOnly 2 years ago
tests Updated deps, added FauxReadOnly 2 years ago
vendor-bin Updated deps, added FauxReadOnly 2 years ago
.gitignore Updated deps, added FauxReadOnly 2 years ago
AUTHORS Initial commit 3 years ago
LICENSE Initial commit 3 years ago
README.md Updated deps, added FauxReadOnly 2 years ago
RoboFile.php Initial commit 3 years ago
composer.json Initial commit 3 years ago
composer.lock Updated deps, added FauxReadOnly 2 years ago
robo Initial commit 3 years ago

README.md

Framework

Common classes and traits used in many MensBeam projects

Exception

Basic exception framework using constants for error codes with corresponding messages. Exceptions can have any number of parameters that are varied from error code to error code.

Faux Read Only

A trait containing a getter that will allow reading of protected properties that begin with an underscore, making them appear readonly. Cannot be used with Magic Properties.

Magic Properties

Let's face it. Getters and setters in PHP sucks. Instead of having getter and setter accessor methods for classes we instead have the __get and __set magic methods to handle all properties. Not only are they unwieldy to use when you have many properties they also become difficult to handle when inheriting, especially when traits are involved. This trait attempts to create hackish getter and setter methods that can be extended by simple inheritance.