public function __call($name, $args) { if (!in_array($name, array("start", "end")) || $args == array()) { return parent::__call($name, $args); } $this->{$name} = (int) $args[0]; return true; }