src/Compiler/Compiler.php
private function propertySetList(array $property_injections)
    {
        $this->state->category = CompilerState::CATEGORY_PROPERTY;
        $ret = '';
        foreach($property_injections as $injection){
            $property_name = $injection['property'] ?? null;
            $value = $injection['value'] ?? null;
    
            $this->state->name = $property_name;
    
            if (is_null($value)){
                $value = 'null';
            }
            elseif (is_string($value)){
                $value = $this->decorateStringValue($value);
            }
            elseif (is_array($value)){
                $value = $this->decorateArrayValue($value);
            }
            
            $ret .= "        \$component->{$property_name} = {$value};\n";
        }
        return $ret;
    }
private function propertySetList(array $property_injections)
    {
        $this->state->category = CompilerState::CATEGORY_PROPERTY;
        $ret = '';
        foreach($property_injections as $injection){
            $property_name = $injection['property'] ?? null;
            $value = $injection['value'] ?? null;
    
            $this->state->name = $property_name;
    
            if (is_null($value)){
                $value = 'null';
            }
            elseif (is_string($value)){
                $value = $this->decorateStringValue($value);
            }
            elseif (is_array($value)){
                $value = $this->decorateArrayValue($value);
            }
            
            $ret .= "        \$component->{$property_name} = {$value};\n";
        }
        return $ret;
    }
private function propertySetList ( array $ property_injections ) { $ this -> state -> category = CompilerState :: CATEGORY_PROPERTY ; $ ret = '' ; foreach ( $ property_injections as $ injection ) { $ property_name = $ injection [ 'property' ] ?? null ; $ value = $ injection [ 'value' ] ?? null ; $ this -> state -> name = $ property_name ; if ( is_null ( $ value ) ) { $ value = 'null' ; } elseif ( is_string ( $ value ) ) { $ value = $ this -> decorateStringValue ( $ value ) ; } elseif ( is_array ( $ value ) ) { $ value = $ this -> decorateArrayValue ( $ value ) ; } $ ret .= "        \$component->{$property_name} = {$value};\n" ; } return $ ret ; }
Make property set code

@param array $property_injections

@return string

@throws CompileErrorException
Make property set code