Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace App\Domain\Notification\Service;
6
7use RuntimeException;
8
9/**
10 * Tiny HTTP transport for healthchecks.io pings (FSC-115). One method
11 * — fire a GET, wait briefly, succeed or throw. The pinger that uses
12 * this catches the throw and logs it; a cron run never fails because
13 * the healthcheck endpoint was unreachable.
14 *
15 * Tests substitute {@see \App\Test\Fake\FakeHealthcheckClient}.
16 */
17interface HealthcheckClientInterface
18{
19    /**
20     * @param string $url
21     * @param int $timeoutSeconds
22     * @throws RuntimeException on transport failure or non-2xx response.
23     */
24    public function get(string $url, int $timeoutSeconds): void;
25}