sparkphp / domain
This package is abandoned and no longer maintained.
The author suggests using the equip/adr package instead.
Interfaces for Domain and Payload pattern
v0.2.0
2015-08-26 15:41 UTC
This package is not auto-updated.
Last update: 2015-12-15 23:00:09 UTC
README
Interfaces to support the separation of concerns between domain logic and output encapsulation. In this pattern, the Domain object will always return a Payload object that contains the output of the Domain. Can be used in any context.
The Payload should be implemented as an immutable object, creating a copy whenever the status, output, or messages are modified.