src/Colorium/Runtime/Resolver.php
public static function ofFunction($callable)
    {
        if($callable instanceof \Closure or (is_string($callable) and function_exists($callable))) {
            $annotations = Annotation::ofFunction($callable);
            $reflector = new \ReflectionFunction($callable);
            return new Invokable($callable, Invokable::CLOSURE, $annotations, $reflector);
        }
    }
public static function ofFunction($callable)
    {
        if($callable instanceof \Closure or (is_string($callable) and function_exists($callable))) {
            $annotations = Annotation::ofFunction($callable);
            $reflector = new \ReflectionFunction($callable);
            return new Invokable($callable, Invokable::CLOSURE, $annotations, $reflector);
        }
    }
public static function ofFunction ( $ callable ) { if ( $ callable instanceof \ Closure or ( is_string ( $ callable ) and function_exists ( $ callable ) ) ) { $ annotations = Annotation :: ofFunction ( $ callable ) ; $ reflector = new \ ReflectionFunction ( $ callable ) ; return new Invokable ( $ callable , Invokable :: CLOSURE , $ annotations , $ reflector ) ; } }
Resolve if callable is closure or function

@param $callable
@return Invokable
Resolve if callable is closure or function