<?php

declare (strict_types=1);
namespace RectorPrefix20210624\Helmich\TypoScriptParser\Parser\AST;

/**
 * A nested assignment statement.
 *
 * Example:
 *
 *     foo {
 *         bar = 1
 *         baz = 2
 *     }
 *
 * Which is equivalent to
 *
 *     foo.bar = 1
 *     foo.baz = 2
 *
 * @package    Helmich\TypoScriptParser
 * @subpackage Parser\AST
 */
class NestedAssignment extends \RectorPrefix20210624\Helmich\TypoScriptParser\Parser\AST\Statement
{
    /**
     * The object to operate on.
     *
     * @var ObjectPath
     */
    public $object;
    /**
     * The nested statements.
     *
     * @var Statement[]
     */
    public $statements;
    /**
     * @param ObjectPath  $object     The object to operate on.
     * @param Statement[] $statements The nested statements.
     * @param int         $sourceLine The original source line.
     */
    public function __construct(\RectorPrefix20210624\Helmich\TypoScriptParser\Parser\AST\ObjectPath $object, array $statements, int $sourceLine)
    {
        parent::__construct($sourceLine);
        $this->object = $object;
        $this->statements = $statements;
    }
}
