Property Accessors Type Hinting
| From: | Clint M Priest | Date: | Thu, 02 Feb 2012 01:31:42 +0000 |
| Subject: | Property Accessors Type Hinting | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-57609@lists.php.net to get a copy of this message | ||
Type Hinting was not in the original RFC, is type hinting stable enough to be included with the
Property Accessors functionality or is there no clear agreement made with them yet?
https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented?&#read-only_and_write-only_properties
Could be:
<?php
class TimePeriod {
public array $Hours {
...
}
}
?>