rector/rules/Transform/ValueObject/StaticCallToFuncCall.php
Tomas Votruba 7d36c3b0b9 Updated Rector to commit a80cf5292d
a80cf5292d revert to working scoper 0.14
2021-05-10 22:23:08 +00:00

40 lines
807 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Transform\ValueObject;
use PHPStan\Type\ObjectType;
final class StaticCallToFuncCall
{
/**
* @var string
*/
private $class;
/**
* @var string
*/
private $method;
/**
* @var string
*/
private $function;
public function __construct(string $class, string $method, string $function)
{
$this->class = $class;
$this->method = $method;
$this->function = $function;
}
public function getObjectType() : \PHPStan\Type\ObjectType
{
return new \PHPStan\Type\ObjectType($this->class);
}
public function getMethod() : string
{
return $this->method;
}
public function getFunction() : string
{
return $this->function;
}
}