public function update(SubjectInterface $subject) { if (method_exists($this, $subject->getState())) { $subject->count(); call_user_func_array(array($this, $subject->getState()), array($subject)); } return false; }