Yaroslav Shestakov
Yaroslav Shestakov
Any ideas when this will be implemented? Java supports enumeration types, XML also supports for validation, we see enumeration every day - it's a part of our lives. Choose an...
Another solution would be creating non-runnable scannable files that use those enums. ```php return [ 'enums' => [ 'user-roles' => [ User::ROLE_ADMIN => p('enums.user-roles', 'admin') ] ], ]; ``` And...
Thank you for your input! I think as a generic solution, it works very well with specifying the keys separately. As for scannable files, how does the concept sound like...
Bump on this one. Although this package is pure gold, that **final** keyword in this package overcomplicates the extending process creates some sort of authority on how package consumers are...
I'd also gladly rollout a PR with the update.
Created a fork and made a pull request: https://github.com/brick/money/pull/52 Will use this fork for a while. Main arguments to make the Money class extendable are these: - Avoid forcing package...
@BenMorel I'd like to add a few methods, that would allow me to format money in a specific way, depending on a country and use case. The formatting logic should...
The more precise explanation of the above example is actually PHP's DateTime class, which is in my opinion a value object. **Carbon** then extends it and augments with intuitive methods.
Hello there 🙌 Thank you for your reply. Btw, I just decided to give a bit of sponsoring to this project, because it's well done. 💪 Totally regardless of whether...
Thank you for reply @BenMorel I could imagine, if there would be a team of >10 people in one team and final keyword would communicate that "Hey, this class is...