mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
29 lines
456 B
PHP
29 lines
456 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Logging\JUnit\Subscriber;
|
|
|
|
use Pest\Logging\JUnit\JUnitLogger;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
abstract class Subscriber
|
|
{
|
|
/**
|
|
* Creates a new Subscriber instance.
|
|
*/
|
|
public function __construct(private readonly JUnitLogger $logger)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Creates a new JunitLogger instance.
|
|
*/
|
|
final protected function logger(): JUnitLogger
|
|
{
|
|
return $this->logger;
|
|
}
|
|
}
|