rector/rules/Php80/ValueObject/ArrayDimFetchAndConstFetch.php
2021-08-23 00:20:32 +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;
}
}