Skip to content

Commit

Permalink
monitoring/commands: Add `CommandTransportInterface'
Browse files Browse the repository at this point in the history
All concrete Icinga command transport classes should implement the `CommandTransportInterface' .

refs #6593
  • Loading branch information
lippserd committed Aug 29, 2014
1 parent 4ca1eaa commit 0e2e1bc
Showing 1 changed file with 22 additions and 0 deletions.
@@ -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);
}

0 comments on commit 0e2e1bc

Please sign in to comment.