public function compile(): string
    {
        $code = 'new \\' . \get_class($this) . '(';
        $code .= \var_export($this->namespace, true) . ', [';
        
        $index = 0;
        
        foreach ($this->imports as $k => $v) {
            if ($index++ != 0) {
                $code .= ', ';
            }
            
            $code .= \var_export($k, true) . ' => ' . \var_export($v, true);
        }
        
        return $code . '])';
    }
public function compile(): string
    {
        $code = 'new \\' . \get_class($this) . '(';
        $code .= \var_export($this->namespace, true) . ', [';
        
        $index = 0;
        
        foreach ($this->imports as $k => $v) {
            if ($index++ != 0) {
                $code .= ', ';
            }
            
            $code .= \var_export($k, true) . ' => ' . \var_export($v, true);
        }
        
        return $code . '])';
    }
public function compile ( ) : string { $ code = 'new \\' . \ get_class ( $ this ) . '(' ; $ code .= \ var_export ( $ this -> namespace , true ) . ', [' ; $ index = 0 ; foreach ( $ this -> imports as $ k => $ v ) { if ( $ index ++ != 0 ) { $ code .= ', ' ; } $ code .= \ var_export ( $ k , true ) . ' => ' . \ var_export ( $ v , true ) ; } return $ code . '])' ; }
Compiles the namespace context into PHP code that creates a new instance of the context.
Compiles the namespace context into PHP code that creates a new instance of the context .