Ver originalclass Foo{ private $_bar = null; public function something() { $this->_bar = 'foo'; } public function __toString() { return $this->_bar; }}