/** * Creates a new function reflection instance from the supplied callable. * * @param callable $callable * * @return self */ public static function fromCallable(callable $callable) { $reflection = Reflection::fromCallable($callable); return new self($callable, $reflection, FunctionSignature::fromReflection($reflection), FunctionLocation::fromReflection($reflection), FunctionScope::fromReflection($reflection, $callable)); }