diff options
Diffstat (limited to '')
| -rw-r--r-- | test/Foo.php | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/test/Foo.php b/test/Foo.php index e6e688c..4b6148b 100644 --- a/test/Foo.php +++ b/test/Foo.php @@ -7,4 +7,17 @@  class Foo {    public $name; +  private $attrs = array(); + +  public function __isset($name) { +    return isset($this->attrs[$name]); +  } + +  public function __get($name) { +    return $this->attrs[$name]; +  } + +  public function __set($name, $value) { +    $this->attrs[$name] = $value; +  }  } | 
