PayPal\Api\Webhook::getEventTypes PHP Method

getEventTypes() public method

A list of up to ten events to which to subscribe your webhook. To subscribe to all events including new events as they are added, specify the asterisk (*) wildcard. To replace the event_types array, specify the * wildcard. To see all supported events, list available events.
public getEventTypes ( ) : WebhookEventType[]
return WebhookEventType[]
    public function getEventTypes()
    {
        return $this->event_types;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param Webhook $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getUrl(), "http://www.google.com");
     $this->assertEquals($obj->getEventTypes(), WebhookEventTypeTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }