public function __get($name) { if (isset($this->methodCache[$name])) { return $this->methodCache[$name]; } $method = new Proxy($this, $name . '_'); $this->methodCache[$name] = $method; return $method; }