芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookList.php
webhooks = $webhooks; return $this; } /** * A list of webhooks. * * @return \PayPal\Api\Webhook[] */ public function getWebhooks() { return $this->webhooks; } /** * Append Webhooks to the list. * * @param \PayPal\Api\Webhook $webhook * @return $this */ public function addWebhook($webhook) { if (!$this->getWebhooks()) { return $this->setWebhooks(array($webhook)); } else { return $this->setWebhooks( array_merge($this->getWebhooks(), array($webhook)) ); } } /** * Remove Webhooks from the list. * * @param \PayPal\Api\Webhook $webhook * @return $this */ public function removeWebhook($webhook) { return $this->setWebhooks( array_diff($this->getWebhooks(), array($webhook)) ); } }