for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace BB\Services\Payment;
class GoCardlessWebhookParser
{
/**
* @var array
*/
private $response;
* @var string
private $action = null;
private $resourceType = null;
private $bills = [];
private $subscriptions = [];
private $preAuthList = [];
public function parseResponse(array $response)
$this->response = $response;
$this->action = $this->response['action'];
$this->resourceType = $this->response['resource_type'];
}
* @return null
public function getAction()
return $this->action;
public function getResourceType()
return $this->resourceType;
* @return array
public function getBills()
return $this->bills;
public function getSubscriptions()
return $this->subscriptions;
public function getPreAuthList()
return $this->preAuthList;