rector/rules/Arguments/ValueObject/SwapFuncCallArguments.php
Tomas Votruba aa2cb1b997 Updated Rector to commit 0eba231b075849ea4b327ce96c28ec359e7b7636
0eba231b07 [PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444)
2022-06-06 17:12:56 +00:00

38 lines
679 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Arguments\ValueObject;
final class SwapFuncCallArguments
{
/**
* @readonly
* @var string
*/
private $function;
/**
* @var array<int, int>
* @readonly
*/
private $order;
/**
* @param array<int, int> $order
*/
public function __construct(string $function, array $order)
{
$this->function = $function;
$this->order = $order;
}
public function getFunction() : string
{
return $this->function;
}
/**
* @return array<int, int>
*/
public function getOrder() : array
{
return $this->order;
}
}