mirror of https://github.com/rectorphp/rector.git
42 lines
854 B
PHP
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;
|
|
}
|
|
}
|