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