Skip to content

Commit 55f08d2

Browse files
committed
add WorkflowContext
1 parent bfa9e7e commit 55f08d2

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

src/Process/WorkflowContext.php

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?php
2+
/*
3+
* Copyright (c) 2016 KUBO Atsuhiro <[email protected]>,
4+
* All rights reserved.
5+
*
6+
* This file is part of PHPMentorsWorkflowerBundle.
7+
*
8+
* This program and the accompanying materials are made available under
9+
* the terms of the BSD 2-Clause License which accompanies this
10+
* distribution, and is available at http://opensource.org/licenses/BSD-2-Clause
11+
*/
12+
13+
namespace PHPMentors\WorkflowerBundle\Process;
14+
15+
use PHPMentors\Workflower\Process\WorkflowContextInterface;
16+
17+
/**
18+
* @since Class available since Release 1.1.0
19+
*/
20+
class WorkflowContext implements WorkflowContextInterface
21+
{
22+
/**
23+
* @var int|string
24+
*/
25+
private $workflowContextId;
26+
27+
/**
28+
* @var int|string
29+
*/
30+
private $workflowId;
31+
32+
/**
33+
* @param int|string $workflowContextId
34+
* @param int|string $workflowId
35+
*/
36+
public function __construct($workflowContextId, $workflowId)
37+
{
38+
$this->workflowContextId = $workflowContextId;
39+
$this->workflowId = $workflowId;
40+
}
41+
42+
/**
43+
* {@inheritdoc}
44+
*/
45+
public function getWorkflowId()
46+
{
47+
return $this->workflowId;
48+
}
49+
50+
/**
51+
* @return int|string
52+
*/
53+
public function getWorkflowContextId()
54+
{
55+
return $this->workflowContextId;
56+
}
57+
}

0 commit comments

Comments
 (0)