1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Node;
4:
5: use PhpParser\Node\Expr\ArrayItem;
6: use PHPStan\Analyser\Scope;
7:
8: /** @api */
9: class LiteralArrayItem
10: {
11:
12: public function __construct(private Scope $scope, private ?ArrayItem $arrayItem)
13: {
14: }
15:
16: public function getScope(): Scope
17: {
18: return $this->scope;
19: }
20:
21: public function getArrayItem(): ?ArrayItem
22: {
23: return $this->arrayItem;
24: }
25:
26: }
27: