Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encapsulate ItemList inside Item instead of inheriting and exposing many unused public methods #66

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

rvanlaak
Copy link
Collaborator

replaces #51

fixes #50

To stay in control over the public interface on Item and ItemList, the list with items has to get encapsulated inside the Item.

@coveralls
Copy link

coveralls commented Jun 15, 2021

Coverage Status

Coverage decreased (-0.6%) to 98.716% when pulling 5e0058b on rvanlaak:item-interface-encapsulate-list into 513b923 on jkphl:master.

@rvanlaak rvanlaak marked this pull request as ready for review June 15, 2021 10:34
@rvanlaak rvanlaak force-pushed the item-interface-encapsulate-list branch from e472cae to 44ffbab Compare June 15, 2021 11:39
@rvanlaak rvanlaak force-pushed the item-interface-encapsulate-list branch from 44ffbab to 5e0058b Compare June 15, 2021 12:07
@rvanlaak rvanlaak changed the title Encapsulation over inheritance: hide ItemList inside Item Encapsulate ItemList inside Item instead of inheriting and exposing many unused public methods Jun 15, 2021
@rvanlaak rvanlaak requested a review from jkphl June 22, 2021 08:47
@rvanlaak rvanlaak merged commit 79c3ceb into jkphl:master Jun 22, 2021
@rvanlaak rvanlaak deleted the item-interface-encapsulate-list branch June 22, 2021 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not assume ItemInterface is a collection by extending traversable ItemListInterface
2 participants