Yes, I think the compiler could compile the expression

class Bar
{
   public Foo $foo; // That is shorthand getter/setter...
}

to

class Bar
{
   get foo():Foo {return $this->_foo};
   set foo(Foo $obj) {$this->_foo = $obj};
}

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

Reply via email to