public function getArgStmt(Argument $argument) : NodeAbstract
    {
        $dependencyIndex = (string) $argument;
        if ($dependencyIndex === 'Ray\Di\InjectionPointInterface-' . Name::ANY) {
            return $this->getInjectionPoint();
        }
        $hasDependency = isset($this->container->getContainer()[$dependencyIndex]);
        if (! $hasDependency) {
            return $this->nodeFactory->getNode($argument);
        }
        $dependency = $this->container->getContainer()[$dependencyIndex];
        if ($dependency instanceof Instance) {
            return ($this->normalizer)($dependency->value);
        }

        return ($this->functionCompiler)($argument, $dependency);
    }
public function getArgStmt(Argument $argument) : NodeAbstract
    {
        $dependencyIndex = (string) $argument;
        if ($dependencyIndex === 'Ray\Di\InjectionPointInterface-' . Name::ANY) {
            return $this->getInjectionPoint();
        }
        $hasDependency = isset($this->container->getContainer()[$dependencyIndex]);
        if (! $hasDependency) {
            return $this->nodeFactory->getNode($argument);
        }
        $dependency = $this->container->getContainer()[$dependencyIndex];
        if ($dependency instanceof Instance) {
            return ($this->normalizer)($dependency->value);
        }

        return ($this->functionCompiler)($argument, $dependency);
    }
public function getArgStmt ( Argument $ argument ) : NodeAbstract { $ dependencyIndex = ( string ) $ argument ; if ( $ dependencyIndex === 'Ray\Di\InjectionPointInterface-' . Name :: ANY ) { return $ this -> getInjectionPoint ( ) ; } $ hasDependency = isset ( $ this -> container -> getContainer ( ) [ $ dependencyIndex ] ) ; if ( ! $ hasDependency ) { return $ this -> nodeFactory -> getNode ( $ argument ) ; } $ dependency = $ this -> container -> getContainer ( ) [ $ dependencyIndex ] ; if ( $ dependency instanceof Instance ) { return ( $ this -> normalizer ) ( $ dependency -> value ) ; } return ( $ this -> functionCompiler ) ( $ argument , $ dependency ) ; }
Return method argument code

@return Expr|Expr\FuncCall
Return method argument code