rector/rules/Renaming/ValueObject/PseudoNamespaceToNamespace.php
Tomas Votruba bdc1df40d9 Updated Rector to commit 1cc465b4d508238445494313f04a6a56d4e8ca1d
1cc465b4d5 [CodingStyle] Skip RemoveUnusedAliasRector when same class in use statement exists, but not used (#732)
2021-08-22 21:22:18 +00:00

36 lines
750 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Renaming\ValueObject;
final class PseudoNamespaceToNamespace
{
/**
* @var string
*/
private $namespacePrefix;
/**
* @var string[]
*/
private $excludedClasses = [];
/**
* @param string[] $excludedClasses
*/
public function __construct(string $namespacePrefix, array $excludedClasses = [])
{
$this->namespacePrefix = $namespacePrefix;
$this->excludedClasses = $excludedClasses;
}
public function getNamespacePrefix() : string
{
return $this->namespacePrefix;
}
/**
* @return string[]
*/
public function getExcludedClasses() : array
{
return $this->excludedClasses;
}
}