You are here

abstract class SyncCoreExport in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/SyncCoreExport.php \Drupal\cms_content_sync\SyncCoreExport
  2. 2.0.x src/SyncCoreExport.php \Drupal\cms_content_sync\SyncCoreExport

Hierarchy

Expanded class hierarchy of SyncCoreExport

File

src/SyncCoreExport.php, line 5

Namespace

Drupal\cms_content_sync
View source
abstract class SyncCoreExport {

  /**
   * @var \EdgeBox\SyncCore\Interfaces\ISyncCore
   */
  protected $client;

  /**
   * @param \EdgeBox\SyncCore\Interfaces\ISyncCore $client
   */
  public function __construct($client) {
    $this->client = $client;
  }

  /**
   * @return \EdgeBox\SyncCore\Interfaces\ISyncCore
   */
  public function getClient() {
    return $this->client;
  }

  /**
   * Prepare the Sync Core push as a batch operation. Return a batch array
   * with single steps to be executed.
   *
   * @throws \EdgeBox\SyncCore\Exception\SyncCoreException
   *
   * @return \EdgeBox\SyncCore\Interfaces\IBatch
   */
  public abstract function prepareBatch();

}

Members

Namesort descending Modifiers Type Description Overrides
SyncCoreExport::$client protected property
SyncCoreExport::getClient public function
SyncCoreExport::prepareBatch abstract public function Prepare the Sync Core push as a batch operation. Return a batch array with single steps to be executed. 2
SyncCoreExport::__construct public function 2