PHP Data transfer object (DTO) assembler, serialization