mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
d56e7982d0
dedd4b55fe
make node_helper.php safe for similar names
40 lines
770 B
PHP
40 lines
770 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Php80\ValueObject;
|
|
|
|
final class AnnotationToAttribute
|
|
{
|
|
/**
|
|
* @var class-string|string
|
|
*/
|
|
private $tag;
|
|
/**
|
|
* @var class-string
|
|
*/
|
|
private $attributeClass;
|
|
/**
|
|
* @param class-string|string $tag
|
|
* @param class-string $attributeClass
|
|
*/
|
|
public function __construct(string $tag, string $attributeClass)
|
|
{
|
|
$this->tag = $tag;
|
|
$this->attributeClass = $attributeClass;
|
|
}
|
|
/**
|
|
* @return class-string|string
|
|
*/
|
|
public function getTag() : string
|
|
{
|
|
return $this->tag;
|
|
}
|
|
/**
|
|
* @return class-string
|
|
*/
|
|
public function getAttributeClass() : string
|
|
{
|
|
return $this->attributeClass;
|
|
}
|
|
}
|