mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-25 04:12:36 +00:00
aa2cb1b997
0eba231b07
[PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444)
28 lines
683 B
PHP
28 lines
683 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Renaming\Collector;
|
|
|
|
use Rector\Renaming\Contract\MethodCallRenameInterface;
|
|
final class MethodCallRenameCollector
|
|
{
|
|
/**
|
|
* @var MethodCallRenameInterface[]
|
|
*/
|
|
private $methodCallRenames = [];
|
|
/**
|
|
* @param MethodCallRenameInterface[] $methodCallRenames
|
|
*/
|
|
public function addMethodCallRenames(array $methodCallRenames) : void
|
|
{
|
|
$this->methodCallRenames = \array_merge($this->methodCallRenames, $methodCallRenames);
|
|
}
|
|
/**
|
|
* @return MethodCallRenameInterface[]
|
|
*/
|
|
public function getMethodCallRenames() : array
|
|
{
|
|
return $this->methodCallRenames;
|
|
}
|
|
}
|