Commit

03c1b32

To be fair, while the array structure isn’t enforced by PHP itself, it's partially typed through PHPDoc. My bigger concern is that we're coupling the domain object to a specific message representation. I'd rather see that responsibility moved to a dedicated serializer.

commit 03c1b32