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 integer $primary
 6:  * @property-read integer $inId
 7:  * @property-read string $name
 8:  * @property-read string $accountNumberPrefix
 9:  * @property-read string $accountNumber
10:  * @property-read string $accountNumberPostfix
11:  * @property-read string $accountNumberFull
12:  */
13: class SupplierBankAccountLine extends AbstractStructure
14: {
15:   
16:   /** @var integer */
17:   protected $inId;
18:   
19:   /**
20:    * @param array $data
21:    * @param integer $inId
22:    */
23:   public function __construct($data, $inId)
24:   {
25:     $this->data = $data;
26:     $this->inId = $inId;
27:   }
28:   
29:   /**
30:    * @return string
31:    */
32:   public function getJson()
33:   {
34:     return json_encode($this->data);
35:   }
36:   
37:   /**
38:    * @return string
39:    */
40:   public function getPrimary()
41:   {
42:     return $this->getInId();
43:   }
44:   
45:   /**
46:    * Primary key for bank account
47:    * @return string
48:    */
49:   public function getInId()
50:   {
51:     return $this->inId;
52:   }
53:   
54:   /**
55:    * @return string
56:    */
57:   public function getName()
58:   {
59:     return $this->data->name;
60:   }
61:   
62:   /**
63:    * @return string
64:    */
65:   public function getAccountNumberPrefix()
66:   {
67:     return $this->data->accountNumberPrefix;
68:   }
69:   
70:   /**
71:    * @return string
72:    */
73:   public function getAccountNumber()
74:   {
75:     return $this->data->accountNumber;
76:   }
77:   
78:   /**
79:    * @return string
80:    */
81:   public function getAccountNumberPostfix()
82:   {
83:     return $this->data->accountNumberPostfix;
84:   }
85:   
86:   /**
87:    * @return string
88:    */
89:   public function getAccountNumberFull()
90:   {
91:     return ($this->accountNumberPrefix ? $this->accountNumberPrefix . '-' : '') . $this->accountNumber . '/' . $this->accountNumberPostfix;
92:   }
93: 
94:   
95: }
API documentation generated by ApiGen