Crypto Compress
unread,Mar 25, 2015, 4:54:54 PM3/25/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to php...@googlegroups.com
Quiz #1 was about what design-pattern a Message actually is. A simple
bunch of some values?
> What is a "ValueObject"?
>
> a) simple object enclosing values: (int)42, (string)"2015-03-18", ...
> b) complex object enclosing objects: (UriInterface)$uri,
> (StreamableInterface)$stream, ...
The right answer for Quiz #2 is: a) simple object enclosing values
Message, however, is a rather complex object consisting of other complex
objects (at least one: stream). The time consumed to came up with PSR-7
is a first hint that there is something more complex then a simple value
in here. PSR-7's oversimplification treat Message as a loose bunch of
values, hiding the inherent structure of Message and the important
parts: Body identified by URI