src/Compiler/Compiler.php
private function methodCallList(array $method_injections)
    {
        $this->state->category = CompilerState::CATEGORY_METHOD;
        $ret = '';
        foreach($method_injections as $injection){
            $method_name = $injection['method'] ?? null;
            $params = $injection['params'] ?? null;
    
            $this->state->name = $method_name;
    
            $params_str = '';
            if (is_array($params)){
                $params_str = $this->decorateParamsForMethodCall($params);
            }
            
            $ret .= "        \$component->{$method_name}(" . $params_str . ");\n";
        }
        return $ret;
    }
private function methodCallList(array $method_injections)
    {
        $this->state->category = CompilerState::CATEGORY_METHOD;
        $ret = '';
        foreach($method_injections as $injection){
            $method_name = $injection['method'] ?? null;
            $params = $injection['params'] ?? null;
    
            $this->state->name = $method_name;
    
            $params_str = '';
            if (is_array($params)){
                $params_str = $this->decorateParamsForMethodCall($params);
            }
            
            $ret .= "        \$component->{$method_name}(" . $params_str . ");\n";
        }
        return $ret;
    }
private function methodCallList ( array $ method_injections ) { $ this -> state -> category = CompilerState :: CATEGORY_METHOD ; $ ret = '' ; foreach ( $ method_injections as $ injection ) { $ method_name = $ injection [ 'method' ] ?? null ; $ params = $ injection [ 'params' ] ?? null ; $ this -> state -> name = $ method_name ; $ params_str = '' ; if ( is_array ( $ params ) ) { $ params_str = $ this -> decorateParamsForMethodCall ( $ params ) ; } $ ret .= "        \$component->{$method_name}(" . $ params_str . ");\n" ; } return $ ret ; }
Make method call code

@param array $method_injections

@return string

@throws CompileErrorException
Make method call code