mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-20 08:05:29 +01:00
22 lines
601 B
PHP
22 lines
601 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Naming\Guard;
|
|
|
|
use Rector\Naming\Contract\Guard\ConflictingNameGuardInterface;
|
|
use Rector\Naming\Contract\RenameValueObjectInterface;
|
|
use Rector\Naming\ValueObject\PropertyRename;
|
|
/**
|
|
* @implements ConflictingNameGuardInterface<PropertyRename>
|
|
*/
|
|
final class NotPrivatePropertyGuard implements ConflictingNameGuardInterface
|
|
{
|
|
/**
|
|
* @param PropertyRename $renameValueObject
|
|
*/
|
|
public function isConflicting(RenameValueObjectInterface $renameValueObject) : bool
|
|
{
|
|
return !$renameValueObject->isPrivateProperty();
|
|
}
|
|
}
|