src/Compiler/Compiler.php
private function constructor(string $class_name, array $params = null)
    {
        $this->state->category = CompilerState::CATEGORY_CONSTRUCTOR;
        $this->state->name = '';
        $params_str = '';
        if (is_array($params)){
            $params_str = $this->decorateParamsForMethodCall($params);
        }
        return $class_name . '(' . $params_str . ')';
    }
private function constructor(string $class_name, array $params = null)
    {
        $this->state->category = CompilerState::CATEGORY_CONSTRUCTOR;
        $this->state->name = '';
        $params_str = '';
        if (is_array($params)){
            $params_str = $this->decorateParamsForMethodCall($params);
        }
        return $class_name . '(' . $params_str . ')';
    }
private function constructor ( string $ class_name , array $ params = null ) { $ this -> state -> category = CompilerState :: CATEGORY_CONSTRUCTOR ; $ this -> state -> name = '' ; $ params_str = '' ; if ( is_array ( $ params ) ) { $ params_str = $ this -> decorateParamsForMethodCall ( $ params ) ; } return $ class_name . '(' . $ params_str . ')' ; }
Make constructor code

@param string $class_name
@param array $params

@return string

@throws CompileErrorException
Make constructor code