Dynamic Decorator for PHP