mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Since PHP 8.4 implicitly nullable parameter types are deprecated. Normalize scoped PHPDoc for nullable-parameter updates: use `?Type` instead of `Type|null` and remove column alignment. Co-authored-by: "Eric Lippmann <eric.lippmann@icinga.com>"
24 lines
675 B
PHP
24 lines
675 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2021 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
namespace Icinga\Module\Icingadb\Command\Transport;
|
|
|
|
use Icinga\Module\Icingadb\Command\IcingaCommand;
|
|
|
|
/**
|
|
* Interface for Icinga command transports
|
|
*/
|
|
interface CommandTransportInterface
|
|
{
|
|
/**
|
|
* Send an Icinga command over the Icinga command transport
|
|
*
|
|
* @param IcingaCommand $command The command to send
|
|
* @param ?int $now Timestamp of the command or null for now
|
|
*
|
|
* @throws CommandTransportException If sending the Icinga command failed
|
|
*/
|
|
public function send(IcingaCommand $command, ?int $now = null);
|
|
}
|