|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-21 17:45 UTC] morrison dot levi at gmail dot com
[2018-03-25 12:31 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2018-03-25 12:31 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
Description: ------------ hi, what about an interface like this? interface ReadOnlyArrayAccess { abstract public boolean offsetExists ( mixed $offset ) abstract public mixed offsetGet ( mixed $offset ) } interface ArrayAccess extends ReadOnlyArrayAccess { abstract public void offsetSet ( mixed $offset , mixed $value ) abstract public void offsetUnset ( mixed $offset ) } it is easier to implement when objects must be immutable thank you