protected function useCallable($callable, $value) { if (!is_callable($callable, false, $input)) { throw new InvalidCallbackException("The callable {$input} could not be resolved."); } return call_user_func($callable, $value); }