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

Breadcrumb

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

class TestStubForIntersectionOfInterfacesCreated

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Test\TestStubForIntersectionOfInterfacesCreated implements \PHPUnit\Event\Event

Expanded class hierarchy of TestStubForIntersectionOfInterfacesCreated

File

vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/TestStubForIntersectionOfInterfacesCreated.php, line 22

Namespace

PHPUnit\Event\Test
View source
final class TestStubForIntersectionOfInterfacesCreated implements Event {
    private readonly Telemetry\Info $telemetryInfo;
    
    /**
     * @psalm-var list<class-string>
     */
    private readonly array $interfaces;
    
    /**
     * @psalm-param list<class-string> $interfaces
     */
    public function __construct(Telemetry\Info $telemetryInfo, array $interfaces) {
        $this->telemetryInfo = $telemetryInfo;
        $this->interfaces = $interfaces;
    }
    public function telemetryInfo() : Telemetry\Info {
        return $this->telemetryInfo;
    }
    
    /**
     * @return list<class-string>
     */
    public function interfaces() : array {
        return $this->interfaces;
    }
    public function asString() : string {
        return sprintf('Test Stub Created (%s)', implode('&', $this->interfaces));
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
TestStubForIntersectionOfInterfacesCreated::$interfaces private property @psalm-var list&lt;class-string&gt;
TestStubForIntersectionOfInterfacesCreated::$telemetryInfo private property
TestStubForIntersectionOfInterfacesCreated::asString public function Overrides Event::asString
TestStubForIntersectionOfInterfacesCreated::interfaces public function
TestStubForIntersectionOfInterfacesCreated::telemetryInfo public function Overrides Event::telemetryInfo
TestStubForIntersectionOfInterfacesCreated::__construct public function @psalm-param list&lt;class-string&gt; $interfaces

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal