PayPal\Test\Api\WebhookEventTypeTest::getObject PHP Method

getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : WebhookEventType
return PayPal\Api\WebhookEventType
    public static function getObject()
    {
        return new WebhookEventType(self::getJson());
    }

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());
 }
All Usage Examples Of PayPal\Test\Api\WebhookEventTypeTest::getObject