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

Breadcrumb

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

class ClassMethod

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php \PhpParser\Node\Stmt\ClassMethod

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Code\ClassMethod

Expanded class hierarchy of ClassMethod

4 files declare their use of ClassMethod
DataProviderMethodCalled.php in vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/DataProviderMethodCalled.php
DataProviderMethodFinished.php in vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/DataProviderMethodFinished.php
DispatchingEmitter.php in vendor/phpunit/phpunit/src/Event/Emitter/DispatchingEmitter.php
Emitter.php in vendor/phpunit/phpunit/src/Event/Emitter/Emitter.php

File

vendor/phpunit/phpunit/src/Event/Value/ClassMethod.php, line 17

Namespace

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