Skip to content

Added cloneable data contract and trait #8

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

Merged
merged 4 commits into from
Dec 28, 2024
Merged

Conversation

Fa-BRAIK
Copy link
Contributor

No description provided.

@Fa-BRAIK Fa-BRAIK added the feature New feature! label Dec 28, 2024
Introduced the Cloneable Data feature to allow `Data` objects to support cloning with updated values using the `with` method. Added documentation, unit tests, examples, and updated related components to reflect this enhancement.
Added support for cloning `Data` instances using JSON, `stdClass`, and other normalized formats. Updated tests and documentation to reflect the changes, and ensured the method throws an exception when no parameters are passed.
Refactor the `BaseData::create` method to handle invalid input more effectively, using a specific exception for clarity. Introduce `UselessDataCipher` as a test dummy and add unit tests to ensure proper exception handling for invalid serialization and data creation.
@Fa-BRAIK Fa-BRAIK merged commit f84d04e into main Dec 28, 2024
2 checks passed
@Fa-BRAIK Fa-BRAIK deleted the feature/cloneable-data branch December 28, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant