rector/rules/Transform/ValueObject/MethodCallToFuncCall.php
Tomas Votruba 44595ed746 Updated Rector to commit 937bf3e28b7868d79c4679d8e1e03cfb2e366a42
937bf3e28b [Transform] Add MethodCallToFuncCallRector (#3391)
2023-02-19 13:39:22 +00:00

42 lines
854 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Transform\ValueObject;
final class MethodCallToFuncCall
{
/**
* @readonly
* @var string
*/
private $objectType;
/**
* @readonly
* @var string
*/
private $methodName;
/**
* @readonly
* @var string
*/
private $functionName;
public function __construct(string $objectType, string $methodName, string $functionName)
{
$this->objectType = $objectType;
$this->methodName = $methodName;
$this->functionName = $functionName;
}
public function getObjectType() : string
{
return $this->objectType;
}
public function getMethodName() : string
{
return $this->methodName;
}
public function getFunctionName() : string
{
return $this->functionName;
}
}