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\Structures;
  3: 
  4: /**
  5:  * @property-read string $url
  6:  * @property-read string $urlOriginal
  7:  * @property-read bool $main
  8:  * @property-read string $name
  9:  * @property-read double $size
 10:  * @property-read integer $width
 11:  * @property-read integer $height
 12:  * @property-read string $hash
 13:  */
 14: class ImageLine extends AbstractStructure
 15: {
 16:   
 17:   /**
 18:    * @param array $data
 19:    */
 20:   public function __construct($data)
 21:   {
 22:     $this->data = $data;
 23:   }
 24:   
 25:   /**
 26:    * @return string
 27:    */
 28:   public function getJson()
 29:   {
 30:     return json_encode($this->data);
 31:   }
 32:   
 33:   /**
 34:    * @return string
 35:    */
 36:   public function getUrl()
 37:   {
 38:     return $this->data->url;
 39:   }
 40:   
 41:   /**
 42:    * @return string
 43:    */
 44:   public function getUrlOriginal()
 45:   {
 46:     return $this->data->urlOriginal;
 47:   }
 48:   
 49:   /**
 50:    * @return bool
 51:    */
 52:   public function getMain()
 53:   {
 54:     return (bool)$this->data->main;
 55:   }
 56:   
 57:   /**
 58:    * @return string
 59:    */
 60:   public function getName()
 61:   {
 62:     return $this->data->name;
 63:   }
 64:   
 65:   /**
 66:    * Size in kb
 67:    * @return double
 68:    */
 69:   public function getSize()
 70:   {
 71:     return $this->data->size;
 72:   }
 73:   
 74:   /**
 75:    * @return integer
 76:    */
 77:   public function getWidth()
 78:   {
 79:     return $this->data->width;
 80:   }
 81:   
 82:   /**
 83:    * @return integer
 84:    */
 85:   public function getHeight()
 86:   {
 87:     return $this->data->height;
 88:   }
 89:   
 90:   /**
 91:    * @return string
 92:    */
 93:   public function getHash()
 94:   {
 95:     return $this->data->hash;
 96:   }
 97:   
 98: 
 99:   
100: }
API documentation generated by ApiGen