# Property Accessors Type Hinting

- Thread: https://externals.io/message/57609
- Original archive: https://news-web.php.net/php.internals/57609
- Started by Clint M Priest on 2012-02-02T01:31:42+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #57609 — Clint M Priest — 2012-02-02T01:31:42+00:00

URL: https://externals.io/message/57609#57609

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 {
      ...
   }
}
?
