Added decorator pattern in PHP