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

Breadcrumb

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

class Depends

@psalm-immutable

@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Hierarchy

  • class \PHPUnit\Framework\Attributes\Depends

Expanded class hierarchy of Depends

1 file declares its use of Depends
AttributeParser.php in vendor/phpunit/phpunit/src/Metadata/Parser/AttributeParser.php
4 string references to 'Depends'
AnnotationParser::forMethod in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className @psalm-param non-empty-string $methodName
Builder::fromParameters in vendor/phpunit/phpunit/src/TextUI/Configuration/Cli/Builder.php
Loader::phpunit in vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Loader.php
PuliBetaStrategy::getCandidates in vendor/php-http/discovery/src/Strategy/PuliBetaStrategy.php
Find a resource of a specific type.

File

vendor/phpunit/phpunit/src/Framework/Attributes/Depends.php, line 19

Namespace

PHPUnit\Framework\Attributes
View source
final class Depends {
    
    /**
     * @psalm-var non-empty-string
     */
    private readonly string $methodName;
    
    /**
     * @psalm-param non-empty-string $methodName
     */
    public function __construct(string $methodName) {
        $this->methodName = $methodName;
    }
    
    /**
     * @psalm-return non-empty-string
     */
    public function methodName() : string {
        return $this->methodName;
    }

}

Members

Title Sort descending Modifiers Object type Summary
Depends::$methodName private property @psalm-var non-empty-string
Depends::methodName public function @psalm-return non-empty-string
Depends::__construct public function @psalm-param non-empty-string $methodName
RSS feed
Powered by Drupal