children )->treeDeps = $this->treeDeps + 1; return current( $this->children ); } public function key() { return key( $this->children ); } public function next() { return next( $this->children ); } public function rewind() { return reset( $this->children ); } public function valid() { return ( current( $this->children ) !== false ); } public function getChildren() { return current( $this->children ); } public function hasChildren() { return ( sizeof( current( $this->children )->children ) > 0 ); } public function __get( $key ) { switch ( $key ) { case "from": return parent::__get( $key )->__toString(); case "to": case "cc": case "bcc": return $this->serializeEmailAddresses( parent::__get( $key ) ); case "body": return $this->serializeBody( parent::__get( $key ) ); } return parent::__get( $key ); } } ?>