Currently my code looks like that:
switch ($_POST[\'operation\']) { case \'create\': $db_manager->create(); break; case \'retrieve\':
You can use is_callable() or method_exists().
The difference between them is that the latter wouldn't work for the case, if __call() handles the method call.
__call()