<?php

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

use RectorPrefix20210808\Helmich\TypoScriptParser\Parser\AST\ObjectPath;
use RectorPrefix20210808\Helmich\TypoScriptParser\Parser\AST\Scalar;
/**
 * An assignment statement.
 *
 * Example:
 *
 *     foo = bar
 *
 * @package    Helmich\TypoScriptParser
 * @subpackage Parser\AST\Operator
 */
class Assignment extends \RectorPrefix20210808\Helmich\TypoScriptParser\Parser\AST\Operator\BinaryOperator
{
    /**
     * The value to be assigned. Should be a scalar value, which MAY contain
     * a constant evaluation expression (like "${foo.bar}").
     *
     * @var Scalar
     */
    public $value;
    /**
     * Constructs an assignment.
     *
     * @param ObjectPath $object     The object to which to assign the value.
     * @param Scalar     $value      The value to be assigned.
     * @param int        $sourceLine The source line.
     */
    public function __construct(\RectorPrefix20210808\Helmich\TypoScriptParser\Parser\AST\ObjectPath $object, \RectorPrefix20210808\Helmich\TypoScriptParser\Parser\AST\Scalar $value, int $sourceLine)
    {
        parent::__construct($sourceLine);
        $this->object = $object;
        $this->value = $value;
    }
}
