mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-11 11:11:12 +01:00
1cc465b4d5
[CodingStyle] Skip RemoveUnusedAliasRector when same class in use statement exists, but not used (#732)
36 lines
750 B
PHP
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;
|
|
}
|
|
}
|