monitoring/commands: Add `CommandTransportInterface'
All concrete Icinga command transport classes should implement the `CommandTransportInterface' . refs #6593
This commit is contained in:
parent
4ca1eaa7ce
commit
0e2e1bc005
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
|
||||
namespace Icinga\Module\Monitoring\Command\Transport;
|
||||
|
||||
use Icinga\Module\Monitoring\Command\IcingaCommand;
|
||||
|
||||
/**
|
||||
* Interface for Icinga command transports
|
||||
*/
|
||||
interface CommandTransportInterface
|
||||
{
|
||||
/**
|
||||
* Send the command
|
||||
*
|
||||
* @param IcingaCommand $command
|
||||
*
|
||||
* @throws \Icinga\Module\Monitoring\Command\Exception\TransportException
|
||||
*/
|
||||
public function send(IcingaCommand $command);
|
||||
}
|
Loading…
Reference in New Issue