src/Definition/PropertyAssignment.php
public function toPhpCode($variableName, $containerVariable, array $usedVariables): InlineEntryInterface
    {
        $inlineEntry = ValueUtils::dumpValue($this->value, $containerVariable, $usedVariables);
        $codeLine = sprintf('%s->%s = %s;', $variableName, $this->propertyName, $inlineEntry->getExpression());

        return new InlineEntry('', $inlineEntry->getStatements().$codeLine, $inlineEntry->getUsedVariables());
    }
public function toPhpCode($variableName, $containerVariable, array $usedVariables): InlineEntryInterface
    {
        $inlineEntry = ValueUtils::dumpValue($this->value, $containerVariable, $usedVariables);
        $codeLine = sprintf('%s->%s = %s;', $variableName, $this->propertyName, $inlineEntry->getExpression());

        return new InlineEntry('', $inlineEntry->getStatements().$codeLine, $inlineEntry->getUsedVariables());
    }
Generates PHP code for the line.

@param string $variableName
@param string $containerVariable
@param array  $usedVariables

@return InlineEntryInterface