webDEVILopers
webDEVILopers
I get it @prolic . In the end I would keep the primitives inside the event for serializing and skipping the `toArray` boilerplate on the value objects. But when the...
Thanks for your explanation and the examples @codeliner ! I agree. I guess I was a little bit confused by the RAD demo code. But as Sascha mentioned: > @webdevilopers...
Thanks for the feedback! Same here regarding private and named ctors. The example was just for demonstration. At the bottom line do you even think about other developers of your...
Sorry, but could you explain what you mean? I missed the point. :/
But how would you init the object then for instance in an event like this? ```php public function customPrices(): CustomPrices { if (null === $this->customPrices) { $this->customPrices = new CustomPrices(array_map(function(array...
Thanks for explaining! BTW the example was taken from the older version of @prooph event store. In the current version they skipped the serialization of Domain Event value objects: ```php...
The remaining classes and interfaces: ```php interface DormerTypeInterface { public function canHaveGutterInstalled(): bool; } abstract class DormerType implements DormerTypeInterface {} class FlatRoofDormer extends DormerType { public function canHaveGutterInstalled(): bool {...
Thanks again @yvoyer for this comprehensive feedback. Indeed my factory currently holds more complex logic. It bloated the original Application Handler. That's why I moved it to a "Factory". One...
I'm fine with passing the DormerType to Dormer. i just wanted to ensure that it is ok to pass it but then let the newly created Object only keep the...
Absolutely. BTW I already used an interface but honestly did not recognize how easy it will make mocking when testing until you pointed it out. ;) Maybe @matthiasnoback and @Ocramius...