JavaScript like prototype for PHP through magic methods.