2015-07-14 11:05 GMT+02:00 S.A.N <ua.san.a...@gmail.com>:
> Maybe implement getter/setter as ECMAScript 6?
>
> class Person
> {
>     get name ():string       { return $this._name }
>     set name (string $value)     { $this._name = $value }
> }

Which was rejected some time ago. (34 vs 22 in favor):
https://wiki.php.net/rfc/propertygetsetsyntax-v1.2

Maybe it's time to reevaluate the proposal and see if a new
implementation could gather
more support.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to