Skip to content

Commit 0515e3d

Browse files
committed
Added transition error message
1 parent 4a35d13 commit 0515e3d

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
/*
3+
* This file is part of the Aqua Delivery package.
4+
*
5+
* (c) Sergey Logachev <svlogachev@gmail.com>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
11+
declare(strict_types=1);
12+
13+
namespace Cvek\WorkflowBundle\Exception;
14+
15+
final class TransitionErrorMessage
16+
{
17+
private string $error;
18+
private string $transition;
19+
20+
public function __construct(string $error, string $transition)
21+
{
22+
$this->error = $error;
23+
$this->transition = $transition;
24+
}
25+
26+
public function getError(): string
27+
{
28+
return $this->error;
29+
}
30+
31+
/**
32+
* @return string
33+
*/
34+
public function getTransition(): string
35+
{
36+
return $this->transition;
37+
}
38+
}

0 commit comments

Comments
 (0)