public function testPropertyGetters() { $this->assertSame(1, $this->object->get('returned')); $this->assertTrue($this->object->has('returned')); $this->assertNull($this->object->get('foo', null)); }
public function onAbort(TransitionEvent $e) { $deployment = $e->getStateMachine()->getObject(); // 2 is SIGINT - we can't use SIGINT constant in the mod_apache context. $deployment->setSignal(2); }
/** * {@inheritdoc} */ public function isSatisfiedBy(TransitionEvent $event) { return $event->getStateMachine() === $this->stateMachine && $this->supportsClause('from', $event->getInitialState()->getName()) && $this->supportsClause('to', $event->getTransition()->getState()) && $this->supportsClause('on', $event->getTransition()->getName()); }
public function onPostTransition(TransitionEvent $event) { $object = $event->getStateMachine()->getObject(); $this->callCallback($object, 'post', $event->getTransition()->getName()); }