eventbrite_one_way_sync-1.0.0/src/EventbriteOneWaySyncInterface.php
src/EventbriteOneWaySyncInterface.php
<?php
namespace Drupal\eventbrite_one_way_sync;
use Drupal\eventbrite_one_way_sync\Session\SessionInterface;
/**
* Module singleton. Use \Drupal::service('eventbrite_one_way_sync').
*/
interface EventbriteOneWaySyncInterface {
/**
* Get a session to connect with an Eventbrite account.
*
* @param string $eventbrite_account_label
* An Eventbrite account label such as Default.
*
* @return \Drupal\eventbrite_one_way_sync\Session\SessionInterface
* A session to connect to Eventbrite.
*/
public function session(string $eventbrite_account_label) : SessionInterface;
/**
* Testable implementation of hook_cron().
*/
public function hookCron();
/**
* Process a single event from the queue, if possible.
*
* @return bool
* TRUE if there are still items to process.
*/
public function processNext() : bool;
/**
* Get the webhook to use, see ./README.md.
*
* @return string
* The webhook to use.
*/
public function webhook(string $eventbrite_account_label) : string;
}
