Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (33 sloc) 809 Bytes
<?php
/*
* This file is part of the Tolerance package.
*
* (c) Samuel ROZE <samuel.roze@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tolerance\Operation\Runner;
use Tolerance\Operation\Exception\UnsupportedOperation;
use Tolerance\Operation\Operation;
interface OperationRunner
{
/**
* Run the given operation.
*
* @param Operation $operation
*
* @throws UnsupportedOperation
*
* @return mixed
*/
public function run(Operation $operation);
/**
* Returns true if the runner is able to run the operation.
*
* @param Operation $operation
*
* @return bool
*/
public function supports(Operation $operation);
}