Re: [RFC] [Discussion] Support object type in BCMath
| From: | Aleksander Machniak | Date: | Thu, 28 Mar 2024 13:42:30 +0000 |
| Subject: | Re: [RFC] [Discussion] Support object type in BCMath | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-122790@lists.php.net to get a copy of this message | ||
On 28.03.2024 14:30, Saki Takamachi wrote:
The Readonly property was implemented since PHP 8.1, so inner classes implemented before then did not have the option of using the readonly property. As far as I know, no new inner classes with readonly properties or simple getters have been added since PHP 8.1. Therefore, there is currently no precedent that can be compared on the same terms as BCMath\Number….
Enums have 'value' and 'name' properties. Although they are kinda special.
--
Aleksander Machniak
Kolab Groupware Developer [https://kolab.org]
Roundcube Webmail Developer [https://roundcube.net]
----------------------------------------------------
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com