src/PeekAndPoke/Aviator/ServiceContainer/Builder.php
public function createPublicMethodInjection(\ReflectionMethod $method) : MethodInjection
    {
        /** @var ParameterInjection[] $injections */
        $injections = [];

        foreach ($method->getParameters() as $parameter) {

            $injections[] = new ParameterInjection(
                $parameter->getName(),
                (string) $parameter->getType(),
                $parameter->isArray(),
                $this->getInjectHint($method, $parameter)
            );
        }

        return new MethodInjection($injections, $method->getName());
    }
public function createPublicMethodInjection(\ReflectionMethod $method) : MethodInjection
    {
        /** @var ParameterInjection[] $injections */
        $injections = [];

        foreach ($method->getParameters() as $parameter) {

            $injections[] = new ParameterInjection(
                $parameter->getName(),
                (string) $parameter->getType(),
                $parameter->isArray(),
                $this->getInjectHint($method, $parameter)
            );
        }

        return new MethodInjection($injections, $method->getName());
    }
Generates the injection model for the given class and method

@param \ReflectionMethod $method

@return MethodInjection