rector/rules/Transform/ValueObject/StringToClassConstant.php
Tomas Votruba d56e7982d0 Updated Rector to commit dedd4b55fe
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00

39 lines
726 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Transform\ValueObject;
final class StringToClassConstant
{
/**
* @var string
*/
private $string;
/**
* @var string
*/
private $class;
/**
* @var string
*/
private $constant;
public function __construct(string $string, string $class, string $constant)
{
$this->string = $string;
$this->class = $class;
$this->constant = $constant;
}
public function getString() : string
{
return $this->string;
}
public function getClass() : string
{
return $this->class;
}
public function getConstant() : string
{
return $this->constant;
}
}