| Current Path : /home/rtorresani/www/vendor/rector/rector/rules/Transform/ValueObject/ |
| Current File : //home/rtorresani/www/vendor/rector/rector/rules/Transform/ValueObject/StaticCallRecipe.php |
<?php
declare (strict_types=1);
namespace Rector\Transform\ValueObject;
use Rector\Core\Validation\RectorAssert;
final class StaticCallRecipe
{
/**
* @readonly
* @var string
*/
private $className;
/**
* @readonly
* @var string
*/
private $methodName;
public function __construct(string $className, string $methodName)
{
$this->className = $className;
$this->methodName = $methodName;
RectorAssert::className($className);
RectorAssert::methodName($methodName);
}
public function getClassName() : string
{
return $this->className;
}
public function getMethodName() : string
{
return $this->methodName;
}
}