Common classes and traits used in many MensBeam projects
Find a file
2021-10-20 22:45:28 -05:00
lib Fixed method name caching bug in magic properties 2021-10-20 22:45:28 -05:00
tests Initial commit 2021-10-11 09:51:36 -05:00
vendor-bin Initial commit 2021-10-11 09:51:36 -05:00
.gitignore Initial commit 2021-10-11 09:51:36 -05:00
AUTHORS Initial commit 2021-10-11 09:51:36 -05:00
composer.json Initial commit 2021-10-11 09:51:36 -05:00
composer.lock Initial commit 2021-10-11 09:51:36 -05:00
LICENSE Initial commit 2021-10-11 09:51:36 -05:00
README.md Added description for Exception to README 2021-10-11 09:53:50 -05:00
robo Initial commit 2021-10-11 09:51:36 -05:00
RoboFile.php Initial commit 2021-10-11 09:51:36 -05:00

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.