sparkphp / domain
Interfaces for Domain and Payload pattern
Installs: 749
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 0
pkg:composer/sparkphp/domain
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.