PayPal\Api\Webhook::getId PHP Method

getId() public method

The ID of the webhook.
public getId ( ) : string
return string
    public function getId()
    {
        return $this->id;
    }

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());
 }