rector/rules/Php80/ValueObject/ArrayDimFetchAndConstFetch.php
Tomas Votruba cdc3b7adef Updated Rector to commit f451b0b8e1e6761ec7f50809745d44d01caba66d
f451b0b8e1 [PHP 8.0] Bump to promoted properties (#4)
2021-05-10 23:39:21 +00:00

32 lines
833 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Php80\ValueObject;
use PhpParser\Node\Expr\ArrayDimFetch;
use PhpParser\Node\Expr\ConstFetch;
final class ArrayDimFetchAndConstFetch
{
/**
* @var \PhpParser\Node\Expr\ArrayDimFetch
*/
private $arrayDimFetch;
/**
* @var \PhpParser\Node\Expr\ConstFetch
*/
private $constFetch;
public function __construct(\PhpParser\Node\Expr\ArrayDimFetch $arrayDimFetch, \PhpParser\Node\Expr\ConstFetch $constFetch)
{
$this->arrayDimFetch = $arrayDimFetch;
$this->constFetch = $constFetch;
}
public function getArrayDimFetch() : \PhpParser\Node\Expr\ArrayDimFetch
{
return $this->arrayDimFetch;
}
public function getConstFetch() : \PhpParser\Node\Expr\ConstFetch
{
return $this->constFetch;
}
}