mirror of https://github.com/rectorphp/rector.git
34 lines
686 B
PHP
34 lines
686 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Php72\ValueObject;
|
|
|
|
use PhpParser\Node\Expr\FuncCall;
|
|
use PhpParser\Node\Expr\List_;
|
|
final class ListAndEach
|
|
{
|
|
/**
|
|
* @readonly
|
|
* @var \PhpParser\Node\Expr\List_
|
|
*/
|
|
private $list;
|
|
/**
|
|
* @readonly
|
|
* @var \PhpParser\Node\Expr\FuncCall
|
|
*/
|
|
private $eachFuncCall;
|
|
public function __construct(List_ $list, FuncCall $eachFuncCall)
|
|
{
|
|
$this->list = $list;
|
|
$this->eachFuncCall = $eachFuncCall;
|
|
}
|
|
public function getList() : List_
|
|
{
|
|
return $this->list;
|
|
}
|
|
public function getEachFuncCall() : FuncCall
|
|
{
|
|
return $this->eachFuncCall;
|
|
}
|
|
}
|