public function savestate($newState) { $this->methodCounter['savestate']++; return parent::savestate($newState); }