PayPal\Api\WebhookEvent::getResource PHP Method

getResource() public method

The resource that triggered the webhook event notification.
public getResource ( ) : PayPalModel
return PayPal\Common\PayPalModel
    public function getResource()
    {
        return $this->resource;
    }

Usage Example

 /**
  * @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());
 }
All Usage Examples Of PayPal\Api\WebhookEvent::getResource