methods = $class->getMethods(ReflectionMethod::IS_FINAL); } /** * Update method 1. * * @return bool true. */ final protected function updateMethodDummy1() { return true; } /** * Update method 2. * * @return bool true. */ final protected function updateMethodDummy2() { return true; } /** * Update method 3. * * @return bool true. */ final protected function updateMethodDummy3() { return true; } /** * Update method 4, raise an exception. * * @throws Exception error. */ final protected function updateMethodException() { throw new Exception('whatever'); } }