getEventType() public method

The event that triggered the webhook event notification.
public getEventType ( ) : string
return string
 /**
  * Process the given $webhookEvent
  *
  * @param \PayPal\Api\WebhookEvent $webhookEvent
  */
 public function processWebhookRequest(\PayPal\Api\WebhookEvent $webhookEvent)
 {
     if ($webhookEvent->getEventType() !== null && in_array($webhookEvent->getEventType(), $this->getSupportedWebhookEvents())) {
         $this->getOrder($webhookEvent);
         $this->{$this->eventTypeToHandler($webhookEvent->getEventType())}($webhookEvent);
     }
 }
 /**
  * @depends testSerializationDeserialization
  * @param WebhookEvent $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getResourceType(), "TestSample");
     $this->assertEquals($obj->getEventType(), "TestSample");
     $this->assertEquals($obj->getSummary(), "TestSample");
     $this->assertEquals($obj->getResource(), "TestSampleObject");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }