The Overload PHP module allows overloading of object property access and method calls.
For more information on overload, check us2.php.net/overload.