/** * The AssociationValue to find the saga instance with, or <code>null</code> if no AssociationValue can be found on * the given <code>eventMessage</code>. * * @param EventMessageInterface $eventMessage The event message containing the value of the association * @return AssociationValue The AssociationValue to find the saga instance with, or <code>null</code> if none found */ public function getAssociationValue(EventMessageInterface $eventMessage) { if (null === $this->associationProperty) { return null; } $associationValue = $this->associationProperty->getValue($eventMessage->getPayload()); return null === $associationValue ? null : new AssociationValue($this->associationKey, $associationValue); }
public function handle(EventMessageInterface $event) { print_r($event->getPayload()); }