rector/rules/Renaming/ValueObject/PseudoNamespaceToNamespace.php
Tomas Votruba c726969380 Updated Rector to commit fc10fce13dcf9767f54e4202b509020fed338645
fc10fce13d [Rectify] [Php81] Enable Rectify on Readonly Property only (#1384)
2021-12-04 12:47:17 +00:00

38 lines
784 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Renaming\ValueObject;
final class PseudoNamespaceToNamespace
{
/**
* @readonly
* @var string
*/
private $namespacePrefix;
/**
* @var string[]
* @readonly
*/
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;
}
}