-
Notifications
You must be signed in to change notification settings - Fork 23
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
Replace the magic getters/setters with non-magic ones #130
Comments
(And also, Prophecy can only stub/mock existing methods, not magic method calls.) |
Type properties would be accessed like |
Yes, exactly: with |
Sounds like a good idea. Maybe we can add specific getters/setters for each field on a per type basis in a later step ( |
Sounds good. Then I propose we move this to post-1.0 (i.e., 2.0 as this will be breaking as well). |
(for later reference) The Collmex API uses
[1] https://www.collmex.de/cgi-bin/cgi.exe?1005,1,help,daten_importieren_datentypen_felder |
The
AbstractType::__get
andAbstractType::__set
do not allow static analysis for cases where they are used. I'd like to deprecate them and replace them with explicitget
andset
methods together with explicitly-typedgetAsString
,setAsBoolean
etc. methods.@mjaschen What do you think?
The text was updated successfully, but these errors were encountered: