class MockObjectForIntersectionOfInterfacesCreated
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\Test\MockObjectForIntersectionOfInterfacesCreated implements \PHPUnit\Event\Event
Expanded class hierarchy of MockObjectForIntersectionOfInterfacesCreated
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Events/ Test/ TestDouble/ MockObjectForIntersectionOfInterfacesCreated.php, line 22
Namespace
PHPUnit\Event\TestView source
final class MockObjectForIntersectionOfInterfacesCreated 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('Mock Object Created (%s)', implode('&', $this->interfaces));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
MockObjectForIntersectionOfInterfacesCreated::$interfaces | private | property | @psalm-var list<class-string> | |
MockObjectForIntersectionOfInterfacesCreated::$telemetryInfo | private | property | ||
MockObjectForIntersectionOfInterfacesCreated::asString | public | function | Overrides Event::asString | |
MockObjectForIntersectionOfInterfacesCreated::interfaces | public | function | ||
MockObjectForIntersectionOfInterfacesCreated::telemetryInfo | public | function | Overrides Event::telemetryInfo | |
MockObjectForIntersectionOfInterfacesCreated::__construct | public | function | @psalm-param list<class-string> $interfaces |