1 | <?php |
||
12 | class StorageData { |
||
13 | |||
14 | /** |
||
15 | * the entity id |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | public $id; |
||
20 | /** |
||
21 | * the state the transition was made to (the current state) |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | public $state; |
||
26 | |||
27 | /** |
||
28 | * the statemachine name |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | public $machine; |
||
33 | /** |
||
34 | * the timestamp when the storagedata was created, ideally at storage time. |
||
35 | * |
||
36 | * @var int |
||
37 | */ |
||
38 | public $timestamp; |
||
39 | |||
40 | public $message; |
||
41 | |||
42 | /** |
||
43 | * |
||
44 | * @param Identifier $identifier |
||
45 | * @param string $state |
||
46 | */ |
||
47 | 18 | public function __construct(Identifier $identifier, $state, $message = null) |
|
55 | } |