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

Breadcrumb

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

class RequiresMethod

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Metadata/RequiresMethod.php \PHPUnit\Metadata\RequiresMethod

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Framework\Attributes\RequiresMethod

Expanded class hierarchy of RequiresMethod

1 file declares its use of RequiresMethod
AttributeParser.php in vendor/phpunit/phpunit/src/Metadata/Parser/AttributeParser.php

File

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

Namespace

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

}

Members

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