/**
  * @param IntegrationInterface $integration
  */
 public function __construct(IntegrationInterface $integration)
 {
     $this->config = $integration->getConfig();
     $this->data_store = $integration->getDataStore();
     $this->logger = $integration->getLogger();
     $this->integrationAPI = $integration->getIntegrationAPI();
 }
 /**
  * @param IntegrationInterface $integration
  * @param APIInterface         $api
  * @param $routes
  */
 public function __construct(IntegrationInterface $integration, APIInterface $api, $routes)
 {
     $this->api = $api;
     $this->dataStore = $integration->getDataStore();
     $this->integration = $integration;
     $this->integrationAPI = $integration->getIntegrationAPI();
     $this->logger = $integration->getLogger();
     $this->routes = $routes;
 }