Skip to content

Comments

✨ Support enums#121

Merged
yoan-myparcel merged 2 commits intomasterfrom
feature/support-enums
Mar 7, 2025
Merged

✨ Support enums#121
yoan-myparcel merged 2 commits intomasterfrom
feature/support-enums

Conversation

@M4tini
Copy link
Member

@M4tini M4tini commented Mar 6, 2025

Added enum support for resource types in the following classes:

  • AbstractTransformer
  • RelationshipCannotBeModifiedException
  • ResourceHandledBy3rdPartyException
  • ResourceNotFoundException

For the transformer I decided to introduce a new $resourceType property next to the string $type to keep things backwards compatible. Also the getType() still returns a string, so all existing implementations will work as well.

@yoan-myparcel yoan-myparcel merged commit c1ba016 into master Mar 7, 2025
1 check passed
@yoan-myparcel yoan-myparcel deleted the feature/support-enums branch March 7, 2025 11:27
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.

3 participants