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

Depend on abstractions in the repository behaviour #25

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

kevindierkx
Copy link
Contributor

This PR updates the method signature in the repository behaviour to depend on the \A17\Twill\Models\Contracts\TwillModelContract abstraction instead of the concrete implementation. ie. \A17\Twill\Models\Model

This makes it easier to use metadata on objects which are not directly managed trough twill, but still serve as the basis for metadata and other related entities.

In addition I've made some small modifications to the usage of classes within the HasMetadata trait. These changes don't really change anything in the way PHP resolves these classes, but it primarily makes it simpler to click trough them in an IDE.

@pauldwight pauldwight self-requested a review December 7, 2023 13:45
@pauldwight pauldwight merged commit 5c9da95 into cwsdigital:v1.x Jan 4, 2024
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.

2 participants