%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/vacivi36/code/vendor/rector/rector/rules/Naming/RenameGuard/
Upload File :
Create Path :
Current File : //home2/vacivi36/code/vendor/rector/rector/rules/Naming/RenameGuard/PropertyRenameGuard.php

<?php

declare (strict_types=1);
namespace Rector\Naming\RenameGuard;

use Rector\Naming\Contract\Guard\ConflictingNameGuardInterface;
use Rector\Naming\ValueObject\PropertyRename;
final class PropertyRenameGuard
{
    /**
     * @var ConflictingNameGuardInterface[]
     * @readonly
     */
    private $conflictingNameGuards;
    /**
     * @param ConflictingNameGuardInterface[] $conflictingNameGuards
     */
    public function __construct(array $conflictingNameGuards)
    {
        $this->conflictingNameGuards = $conflictingNameGuards;
    }
    public function shouldSkip(PropertyRename $propertyRename) : bool
    {
        foreach ($this->conflictingNameGuards as $conflictingNameGuard) {
            if ($conflictingNameGuard->isConflicting($propertyRename)) {
                return \true;
            }
        }
        return \false;
    }
}

Zerion Mini Shell 1.0