*/ class TransitionEvent extends StateMachineEvent { /** * @var TransitionInterface */ protected $transition; /** * @var bool */ protected $transitionRejected = false; /** * @var StateInterface */ protected $initialState; /** * @var array */ protected $properties; /** * @param StateInterface $initialState * @param TransitionInterface $transition * @param StateMachine $stateMachine * @param array $properties */ public function __construct( StateInterface $initialState, TransitionInterface $transition, StateMachine $stateMachine, array $properties = array() ) { $this->transition = $transition; $this->initialState = $initialState; $this->properties = $properties; if ($transition instanceof PropertiesAwareTransitionInterface) { $this->properties = $transition->resolveProperties($properties); } parent::__construct($stateMachine); } /** * @return TransitionInterface */ public function getTransition() { return $this->transition; } /** * @return bool */ public function isRejected() { return $this->transitionRejected; } public function reject() { $this->transitionRejected = true; } /** * @return StateInterface */ public function getInitialState() { return $this->initialState; } /** * @param string $property * * @return bool */ public function has($property) { return array_key_exists($property, $this->properties); } /** * @param string $property * @param mixed $default * * @return mixed */ public function get($property, $default = null) { return $this->has($property) ? $this->properties[$property] : $default; } /** * @return array */ public function getProperties() { return $this->properties; } } __halt_compiler();----SIGNATURE:----uaQgQ8yQPUBGLjNUN6rmq4QEJUoM0LGr/LemY6amMjkt1B1ecvUQr6ygd41GPQBTalGwId1CQVXgKoiOTh8ZnQemHQINEZE1DagwxF/LzqETwj3rNxxkSCttqR7Uwz0xgRtjTsITc6jiMr9uPc9scObGUURfHNOE4WBYUcJSYpiLwf/mSyJAUuCCSRyq+/3jdOO8aJTs7Wg+T9T5y79UvhEBxW7fPBiDavkeJ9J/9fO4MaFlRDbc6QuPh8BjrM+FEcziTZxwAxJYKChBhQL0b/uv6Edf3xoePXePd2PO1Kv5zLfRTGpSe22L3KBhPiNNBc0b0BCqNUJogkqf7z8CZD4Tz6b/S4/c5GyOr11CE1vQlkMxBjaG9QJSBeUJrP7Q1N0rEzrNE1NCh0PdfHXE8yv0uTv/tGMhziC2ICKiFu+4BmxnR8UjIqAqSyim/Aub8eacvOQJRX1kgsWQ4CdSzGoOG2Mpzs5Dg4TSHLpg9MEhW7hYwF66+54TpKJOjOH+MthViBvNaB3SAEbT35efYvi3HubMlVy/PWe0t1/XnlozUyoKEMW0T8jkkH5+5usXPwrg2NY7dQc4T9A2qZh87L2egt957tmrOvMFNOzaTWjEJtx7rOqea34ttFxOahttwpgY6JK9otf2mngQBiFXed99Ar8doHpcdK43IagKhb4=----ATTACHMENT:----MTc0MzY3MTE2OTU5MDcyOSA5NjcxMDgwNTgxOTE5OTAwIDM5OTUzMDMyNDI0NTc1OTM=