<?php class Text { var $x; function doSomething() { $this->x++; } function getX() { return $this->x; } }?>