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\TestView 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<class-string> | |
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<class-string> $interfaces |