Skip to content

Instantly share code, notes, and snippets.

@jeremeamia
Created June 23, 2010 22:34
Show Gist options
  • Save jeremeamia/450658 to your computer and use it in GitHub Desktop.
Save jeremeamia/450658 to your computer and use it in GitHub Desktop.
ObjectAccess interface
<?php // PHP has a ArrayAccess interface, why not an ObjectAccess interface?
interface ObjectAccess
{
public function __isset($key);
public function __get($key);
public function __set($key, $value);
public function __unset($key);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment