-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathOperationRunnerInterface.php
More file actions
36 lines (32 loc) · 1.01 KB
/
OperationRunnerInterface.php
File metadata and controls
36 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/*
* Copyright (c) Atsuhiro Kubo <kubo@iteman.jp> and contributors,
* All rights reserved.
*
* This file is part of Workflower.
*
* This program and the accompanying materials are made available under
* the terms of the BSD 2-Clause License which accompanies this
* distribution, and is available at http://opensource.org/licenses/BSD-2-Clause
*/
namespace PHPMentors\Workflower\Workflow\Operation;
use PHPMentors\Workflower\Workflow\Participant\ParticipantInterface;
use PHPMentors\Workflower\Workflow\Workflow;
/**
* @since 1.2.0
*/
interface OperationRunnerInterface
{
/**
* @param OperationalInterface $operational
* @param Workflow $workflow
*
* @return ParticipantInterface
*/
public function provideParticipant(OperationalInterface $operational, Workflow $workflow);
/**
* @param OperationalInterface $operational
* @param Workflow $workflow
*/
public function run(OperationalInterface $operational, Workflow $workflow);
}