Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DeprecatedScopeHelper.php

class DeprecatedScopeHelper

Hierarchy

  • class \PHPStan\Rules\Deprecations\DeprecatedScopeHelper

Expanded class hierarchy of DeprecatedScopeHelper

1 file declares its use of DeprecatedScopeHelper
LazyDeprecatedScopeResolverProvider.php in vendor/phpstan/phpstan-deprecation-rules/src/DependencyInjection/LazyDeprecatedScopeResolverProvider.php

File

vendor/phpstan/phpstan-deprecation-rules/src/Rules/Deprecations/DeprecatedScopeHelper.php, line 7

Namespace

PHPStan\Rules\Deprecations
View source
class DeprecatedScopeHelper {
    
    /** @var DeprecatedScopeResolver[]  */
    private $resolvers;
    
    /**
     * @param DeprecatedScopeResolver[] $checkers
     */
    public function __construct(array $checkers) {
        $this->resolvers = $checkers;
    }
    public function isScopeDeprecated(Scope $scope) : bool {
        foreach ($this->resolvers as $checker) {
            if ($checker->isScopeDeprecated($scope)) {
                return true;
            }
        }
        return false;
    }

}

Members

Title Sort descending Modifiers Object type Summary
DeprecatedScopeHelper::$resolvers private property @var DeprecatedScopeResolver[]
DeprecatedScopeHelper::isScopeDeprecated public function
DeprecatedScopeHelper::__construct public function *
RSS feed
Powered by Drupal