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

Breadcrumb

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

class RequiresFunction

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

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Framework\Attributes\RequiresFunction

Expanded class hierarchy of RequiresFunction

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

File

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

Namespace

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

}

Members

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