PayPal\Api\WebhookEvent::getResourceType PHP Method

getResourceType() public method

The name of the resource related to the webhook notification event.
public getResourceType ( ) : string
return string
    public function getResourceType()
    {
        return $this->resource_type;
    }

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