Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Add the concept of an ElePHPantCollection #117

Closed
2 tasks
ramondelafuente opened this issue Sep 15, 2017 · 0 comments
Closed
2 tasks

Add the concept of an ElePHPantCollection #117

ramondelafuente opened this issue Sep 15, 2017 · 0 comments

Comments

@ramondelafuente
Copy link
Member

The Herd aggregate is in charge of keeping ElePHPants. But when it contains ElePHPants, it keeps them in an array internally, meaning there is some logic in the Aggregate methods regarding adding/removing an ElePHPants of a certain Breed.

That logic can be contained in an ElePHPantCollection, which is the only thing the Herd needs to have to do it's job.

  • Create the (phpspec) specifications for an ElePHPantCollection, and write the implementation.
  • Switch the internal array to the new ElePHPantCollection inside the Herd aggregate
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant