Class for decorate arrays in php