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

Support for ValueObject cast. #26

Open
Legion112 opened this issue Oct 12, 2022 · 1 comment
Open

Support for ValueObject cast. #26

Legion112 opened this issue Oct 12, 2022 · 1 comment

Comments

@Legion112
Copy link

Is your feature request related to a problem? Please describe.
Laravel 9 supports AttributeCasting for ValueObject for example class money
I wanna this library to support ValueObject casting.

Describe the solution you'd like
We probably should add a way to allow to return of multiple value for setAttribute via hashmap or via some custom DTO object SetAttributes

    public function setAttribute($value)
    {
        return ucwords($value);
    }

We should return
Describe alternatives you've considered

Additional context
image

@Legion112 Legion112 changed the title Support for ValueObject cust. Support for ValueObject cast. Oct 12, 2022
@vkovic
Copy link
Owner

vkovic commented Oct 13, 2022

@Legion112 Interesting point.

I'll look into this in next couple of days.

If you have some idea on concrete implementation, you can share it meanwhile.

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

No branches or pull requests

2 participants