# New access modifier

- Thread: https://externals.io/message/45620
- Original archive: https://news-web.php.net/php.internals/45620
- Started by Chris Trahey on 2009-09-20T01:25:31+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

---

## #45620 — Chris Trahey — 2009-09-20T01:25:31+00:00

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

Request for comments/thoughts:

A new access modifier for methods (members as well, I guess) to allow  
access only from certain classes/interfaces.
Call it whatever (group, trusted, party, etc), but perhaps something  
like this:

group function myMethod($arg) accessible MyInterface MyClass {}

Or

group(MyInterface MyClass) function myMethod() {}



Chris Trahey
Web Applications Developer
Database Administrator
College Station I.S.D.
