Automatically handles get/set methods for your class provided you have created the class member.
class foo {
use GetSet;
protected $bar;
}
(new foo())->setBar(1)->getBar(); // 1
Class-specific logging with a unified directory & filename structure.
class foo {
use Logger;
}
(new foo())->Log('ok'); // logs "[date] ok" to ./Logger/foo/default.log
foo::LogStatic('ok', 'test'); // logs "[date] ok" to ./Logger/foo/test.log
For when you absolutely, positively, can only have 1 of an object. Maybe.
class foo {
use Singleton;
}
foo::getInstance(); // now what?