-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add case when syntax #19
Conversation
Its looking good. Give me a few days to think about it. I am currently not sure whether we should call it |
@tpetry, thank you for the feedback. I see some failing tests. It seems to just be the expected sql that's not correct in these test cases. I'll take a look. Regarding the naming: Block sense it is a block of if else statements so to keep the terminology in regards to PHP code blocks. |
@tpetry I have fixed the failing test it was as i suspected just a minor sql expectation issue using This pr should be good to go from a code perspective now it's only naming convention of the classes that is left to be discussed. |
I made some improvements:
Are you ok with these? Did I not see any issues? I am still not sure whether to name them |
@tpetry Thank you for looking over this pr again. How do you feel about my proposal before about naming it |
@tpetry Sorry to bother you about this. But any thoughts here about my last proposal? |
Its still on my mind. I want to ask the Twitter audience later today what they think. It will definitely be merged. I am just unsure whether to change the names. I want to make the package 1.0.0 in the following weeks - so there won't be any more time to change it once merged. |
@tpetry I have seen your twitter post and it seems like it didn't get enough feedback. I would really love to get this in soon-ish, It's a real shame that |
c4f8181
to
75c4424
Compare
Released as |
Hello everybody.
This is a an implementation of the last reply from @tpetry in this discussion.
Implementation details
Unfortunately PHP itself has reserved the
case
as a keyword, meaning the wordcase
is not allowed as a PHP classname.Which is why i have chosen to use
CaseBlock
instead. However i am open for suggestions regarding naming for this class.