rfc:propertygetsetsyntax-as-implemented:change-requests

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:propertygetsetsyntax-as-implemented:change-requests [2012/12/30 21:26] – [Static Accessors] cpriestrfc:propertygetsetsyntax-as-implemented:change-requests [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 8: Line 8:
 <del>[[https://github.com/cpriest/php-src/issues/6|https://github.com/cpriest/php-src/issues/6]]</del> <del>[[https://github.com/cpriest/php-src/issues/6|https://github.com/cpriest/php-src/issues/6]]</del>
  
-Change syntax to use public set($value) {}, public get(), etcAlong with that means no “magic” $value in the setter+Allow syntax to use parenthesized syntax as well so that both a [TypeHint] and $value may be specified. 
 <code php> <code php>
 class TimePeriod { class TimePeriod {
Line 21: Line 22:
 } }
 </code> </code>
 +
 +The abbreviated syntax is also allowed as per 1.1 RFC.
  
 ==== read-only / write-only keywords ==== ==== read-only / write-only keywords ====
rfc/propertygetsetsyntax-as-implemented/change-requests.1356902803.txt.gz · Last modified: 2017/09/22 13:28 (external edit)