Replies: 1 comment 1 reply
-
|
It's a good idea, but statics sometimes lead to some unwanted and hard-to-troubleshoot issues (like it did for the set* methods for which I had to add Instead I'd consider singleton or some other creational design pattern, so it can be bootstrapped with a given set of globals, but can also be overridden as needed. This should eliminate the unpredictability |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The basic idea is to make HL7::$hl7Globals static, adding HL7::set*() (similar to the with* methods) and also using it in Message.
I'm willing to do a PR if this is something that might be accepted.
Beta Was this translation helpful? Give feedback.
All reactions