Overview

Namespaces

  • Datadepo
    • Api
      • DataStores
      • Structures
      • Synchronizers

Classes

  • Datadepo\Api\ApiWrapper
  • Datadepo\Api\Collector
  • Datadepo\Api\DataDepoResponse
  • Datadepo\Api\DataDepoSync
  • Datadepo\Api\DataStores\PdoDataStore
  • Datadepo\Api\IniConfiguration
  • Datadepo\Api\RunningFiles
  • Datadepo\Api\Structures\AbstractStructure
  • Datadepo\Api\Structures\BusinessLine
  • Datadepo\Api\Structures\BusinessSupplierLine
  • Datadepo\Api\Structures\CategoryLine
  • Datadepo\Api\Structures\DataLine
  • Datadepo\Api\Structures\ImageLine
  • Datadepo\Api\Structures\ParameterLine
  • Datadepo\Api\Structures\PriceLine
  • Datadepo\Api\Structures\RelatedLine
  • Datadepo\Api\Structures\StoreLine
  • Datadepo\Api\Structures\SupplierBankAccountLine
  • Datadepo\Api\Structures\SupplierLine
  • Datadepo\Api\Structures\SupplierPersonLine
  • Datadepo\Api\Structures\VariantLine
  • Datadepo\Api\Synchronizers\AbstractSynchronizer
  • Datadepo\Api\Synchronizers\BusinessSynchronizer
  • Datadepo\Api\Synchronizers\CategorySynchronizer
  • Datadepo\Api\Synchronizers\DataSynchronizer
  • Datadepo\Api\Synchronizers\SuppliersSynchronizer

Interfaces

  • Datadepo\Api\DataStores\IDataStore

Exceptions

  • Datadepo\Api\ApiException
  • Datadepo\Api\ConfigurationException
  • Datadepo\Api\DataDepoRunningException
  • Datadepo\Api\DataDepoSuspendedException
  • Overview
  • Namespace
  • Class
 1: <?php
 2: namespace Datadepo\Api;
 3: 
 4: class DataDepoResponse
 5: {
 6:  
 7:   const CODE_OK = 'ok';
 8:   const CODE_SUSPENDED = 'suspended';
 9:   const CODE_RUNNING = 'running';
10:   const CODE_ERROR = 'error';
11:   
12:   /** @var string */
13:   protected $code;
14:   
15:   /** @var string */
16:   protected $message;
17:   
18:   /** @var array */
19:   protected $counter;
20:   
21:   /**
22:    * @param string $code
23:    */
24:   public function __construct($code, $message = NULL, array $counter = NULL)
25:   {
26:     $this->code = $code;
27:     $this->message = $message;
28:     $this->counter = $counter;
29:   }
30:   
31:   /**
32:    * @return array
33:    */
34:   public function toArray()
35:   {
36:     return array('code' => $this->code, 'message' => $this->message, 'counter' => $this->coounter);
37:   }
38:   
39:   /**
40:    * @return string
41:    */
42:   public function toJson()
43:   {
44:     return json_encode($this->toArray());
45:   }
46:   
47: }
API documentation generated by ApiGen