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 bf7515f4c5 Changed CLOSURE_RETURN_TYPE_ERROR to RETURN_TYPE_ERROR in Exception 1 month ago
lib Changed CLOSURE_RETURN_TYPE_ERROR to RETURN_TYPE_ERROR in Exception 1 month ago
tests Initial commit 2 months ago
vendor-bin Initial commit 2 months ago
.gitignore Initial commit 2 months ago
AUTHORS Initial commit 2 months ago
LICENSE Initial commit 2 months ago
README.md Added description for Exception to README 2 months ago
RoboFile.php Initial commit 2 months ago
composer.json Initial commit 2 months ago
composer.lock Initial commit 2 months ago
robo Initial commit 2 months 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.

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.