rector/rules/Defluent/ValueObject/FluentMethodCalls.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

46 lines
1.1 KiB
PHP

<?php
declare (strict_types=1);
namespace Rector\Defluent\ValueObject;
use PhpParser\Node\Expr\MethodCall;
final class FluentMethodCalls
{
/**
* @var \PhpParser\Node\Expr\MethodCall
*/
private $rootMethodCall;
/**
* @var mixed[]
*/
private $fluentMethodCalls;
/**
* @var \PhpParser\Node\Expr\MethodCall
*/
private $lastMethodCall;
/**
* @param MethodCall[] $fluentMethodCalls
*/
public function __construct(\PhpParser\Node\Expr\MethodCall $rootMethodCall, array $fluentMethodCalls, \PhpParser\Node\Expr\MethodCall $lastMethodCall)
{
$this->rootMethodCall = $rootMethodCall;
$this->fluentMethodCalls = $fluentMethodCalls;
$this->lastMethodCall = $lastMethodCall;
}
public function getRootMethodCall() : \PhpParser\Node\Expr\MethodCall
{
return $this->rootMethodCall;
}
/**
* @return MethodCall[]
*/
public function getFluentMethodCalls() : array
{
return $this->fluentMethodCalls;
}
public function getLastMethodCall() : \PhpParser\Node\Expr\MethodCall
{
return $this->lastMethodCall;
}
}