Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
4 / 4 |
SWEvent | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
4 / 4 |
__construct($sender,$source,$destination) | |
100.00% |
1 / 1 |
1 | |
100.00% |
4 / 4 |
<?php | |
/** | |
* 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 CEvent | |
{ | |
/** | |
* @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) | |
{ | |
parent::__construct($sender); | |
$this->source=$source; | |
$this->destination=$destination; | |
} | |
} | |
?> |