for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Finite\Event;
use Finite\StateMachine\StateMachine;
use Symfony\Contracts\EventDispatcher\Event;
if (!class_exists('Symfony\Contracts\EventDispatcher\Event')) {
class_alias('Symfony\Component\EventDispatcher\Event', 'Symfony\Contracts\EventDispatcher\Event');
}
/**
* The event object which is thrown on state machine actions.
*
* @author Yohan Giarelli <[email protected]>
*/
class StateMachineEvent extends Event
{
* @var StateMachine
protected $stateMachine;
* @param StateMachine $stateMachine
public function __construct(StateMachine $stateMachine)
$this->stateMachine = $stateMachine;
* @return StateMachine
public function getStateMachine()
return $this->stateMachine;