# Interface for __get, __set, __isset, __unset?

- Thread: https://externals.io/message/37865
- Original archive: https://news-web.php.net/php.internals/37865
- Started by Michael B Allen on 2008-05-25T18:28:44+00:00
- Messages: 2
- 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

---

## #37865 — Michael B Allen — 2008-05-25T18:28:44+00:00

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

Is there an interface for:

  interface ???
  {
      public function __get($name);
      public function __set($name, $value);
      public function __isset($name);
      public function __unset($name);
  }

I have a bunch of classes that use this and I'm trying to normalize
things. I'm been trying to think of a good name for it but I'm
stumped.

What would you call this interface?

Container, ObjArray, DyObject, .... ?

Mike

PS: Yes, I realize this is a silly question but I'm borderline
obsessive compulsive about stuff like this. I can't help myself.

---

## #37868 — Hannes Magnusson — 2008-05-25T18:59:05+00:00

URL: https://externals.io/message/37865#37868 · In reply to: #37865

> Is there an interface for:
>
>  interface ???
>  {
>      public function __get($name);
>      public function __set($name, $value);
>      public function __isset($name);
>      public function __unset($name);
>  }
>
> I have a bunch of classes that use this and I'm trying to normalize
> things. I'm been trying to think of a good name for it but I'm
> stumped.
>
> What would you call this interface?

magic.

And since this is not an internals question it should have been posted
to the general user list..

-Hannes
