forked from raoul2000/simpleWorkflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSWEvent.php
More file actions
33 lines (29 loc) · 742 Bytes
/
Copy pathSWEvent.php
File metadata and controls
33 lines (29 loc) · 742 Bytes
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
<?php
namespace niekoost\simpleWorkflow;
/**
* this class implements events fired by the simpleWorkflow behavior. This event is fired
* at different time during a transition (see (see {@link SWActiveRecordBehavior::events()}).
*/
class SWEvent extends \yii\base\Event
{
/**
* @var SWNode source status the owner model is in
*/
public $source;
/**
* @var SWNode destination status the owner model is sent to
*/
public $destination;
/**
* Constructor.
* @param mixed sender of this event
*/
public function __construct($sender,$source,$destination)
{
$this->sender = $sender;
$this->source=$source;
$this->destination=$destination;
parent::__construct();
}
}
?>