You are here

SyncCoreExport.php in CMS Content Sync 8

Same filename and directory in other branches
  1. 2.1.x src/SyncCoreExport.php
  2. 2.0.x src/SyncCoreExport.php

File

src/SyncCoreExport.php
View source
<?php

namespace Drupal\cms_content_sync;

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();

}

Classes

Namesort descending Description
SyncCoreExport