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

Breadcrumb

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

class UsesFunction

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

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Framework\Attributes\UsesFunction

Expanded class hierarchy of UsesFunction

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

File

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

Namespace

PHPUnit\Framework\Attributes
View source
final class UsesFunction {
    
    /**
     * @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
UsesFunction::$functionName private property @psalm-var non-empty-string
UsesFunction::functionName public function @psalm-return non-empty-string
UsesFunction::__construct public function @psalm-param non-empty-string $functionName
RSS feed
Powered by Drupal