public function onPostValidate(PostValidateEvent $event)
 {
     $data = $event->getFormData();
 }
 public function testEvent()
 {
     $formData = array('blah' => '123');
     $event = new PostValidateEvent($this->getMockedFlowInterface(), $formData);
     $this->assertEquals($formData, $event->getFormData());
 }
 public function onPostValidate(PostValidateEvent $event)
 {
     $data = $event->getFormData();
     if ($this->currentStep >= 1) {
         if ($data->getDiscountLevel() == 'individual') {
             $this->removeTempIsFamilyDiscount();
             $this->addSkipStep(2);
         } else {
             $this->setTempIsFamilyDiscount();
             $this->removeSkipStep(2);
         }
     }
 }