Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from bjorvack/rubbens-update
Browse files Browse the repository at this point in the history
Rubbens update
  • Loading branch information
tijsverkoyen authored Jun 28, 2016
2 parents a4de6a0 + 8eb1dc7 commit ee5dd10
Show file tree
Hide file tree
Showing 25 changed files with 851 additions and 681 deletions.
277 changes: 169 additions & 108 deletions DBFact.php

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Exception.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

namespace TijsVerkoyen\DBFact;

/**
* DBFact Exception class
*
* @author Tijs Verkoyen <[email protected]>
* @author Tijs Verkoyen <[email protected]>
*/
class Exception extends \Exception
{
Expand Down
13 changes: 7 additions & 6 deletions Types/Appendices.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

namespace TijsVerkoyen\DBFact\Types;

/**
* DBFact Appendices class
*
* @author Tijs Verkoyen <[email protected]>
* @author Tijs Verkoyen <[email protected]>
*/
class Appendices extends BaseObject
{
Expand All @@ -23,9 +24,9 @@ class Appendices extends BaseObject
*
* @var array
*/
protected $typeMap = array(
'Collection' => array(
'Appendix'
),
);
protected $typeMap = [
'Collection' => [
'Appendix',
],
];
}
15 changes: 8 additions & 7 deletions Types/Appendix.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

namespace TijsVerkoyen\DBFact\Types;

/**
* DBFact Appendix class
*
* @author Tijs Verkoyen <[email protected]>
* @author Tijs Verkoyen <[email protected]>
*/
class Appendix extends BaseObject
{
Expand Down Expand Up @@ -83,12 +84,12 @@ class Appendix extends BaseObject
*
* @var array
*/
protected $typeMap = array(
'int' => array(
protected $typeMap = [
'int' => [
'FileSizeInBytes',
),
'DateTime' => array(
],
'DateTime' => [
'DateTime',
),
);
],
];
}
13 changes: 7 additions & 6 deletions Types/Article.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

namespace TijsVerkoyen\DBFact\Types;

/**
* DBFact Article class
*
* @author Tijs Verkoyen <[email protected]>
* @author Tijs Verkoyen <[email protected]>
*/
class Article extends BaseObject
{
Expand Down Expand Up @@ -203,14 +204,14 @@ class Article extends BaseObject
*
* @var array
*/
protected $typeMap = array(
'float' => array(
protected $typeMap = [
'float' => [
'KortExclBtw', 'KortInclBtw', 'NettoExclBtw', 'NettoInclBtw',
'BrutoExclBtw', 'BrutoInclBtw', 'a_winkel', 'a_winkelinclkosten',
'a_inkoop', 'a_vrystock', 'a_winex', 'a_basisex', 'a_dealer',
'a_aanbevol', 'a_minverk', 'a_prijs1', 'a_prijs2', 'a_prijs3',
'a_prijs4', 'a_prijs5', 'a_btwcode', 'a_maxkort', 'a_minmarge',
'a_maat', 'a_typsamen', 'b_btw1', 'originkoop'
),
);
'a_maat', 'a_typsamen', 'b_btw1', 'originkoop',
],
];
}
29 changes: 15 additions & 14 deletions Types/Artikel.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

namespace TijsVerkoyen\DBFact\Types;

/**
* DBFact Artikel class
*
* @author Tijs Verkoyen <[email protected]>
* @author Tijs Verkoyen <[email protected]>
*/
class Artikel extends BaseObject
{
Expand Down Expand Up @@ -393,11 +394,11 @@ class Artikel extends BaseObject
*
* @var array
*/
protected $typeMap = array(
'array' => array(
'Images', 'Appendices', 'Barcodes'
),
'float' => array(
protected $typeMap = [
'array' => [
'Images', 'Appendices', 'Barcodes',
],
'float' => [
'Stock', 'MinimumStock', 'NominaleStock',
'VeldN1', 'VeldN2', 'VeldN3', 'VeldN4', 'VeldN5',
'BtwPercentage',
Expand All @@ -406,17 +407,17 @@ class Artikel extends BaseObject
'Inhoud',
'M3',
'VerpakkingsGewicht', 'BrutoGewichtInKg', 'NettoGewichtInKg',
),
'int' => array(
],
'int' => [
'VerpakkingsLengte', 'VerpakkingsBreedte', 'VerpakkingsHoogte',
'ArtikelLengte', 'ArtikelBreedte', 'ArtikelHoogte',
),
'DateTime' => array(
],
'DateTime' => [
'CreatieDat', 'VerwachtDat',
'VeldD1', 'VeldD2', 'VeldD3', 'VeldD4', 'VeldD5',
),
'Custom' => array(
],
'Custom' => [
'Prijzen', 'Kosten', 'WebFiche',
),
);
],
];
}
175 changes: 88 additions & 87 deletions Types/BBK.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace TijsVerkoyen\DBFact\Types;

/**
Expand All @@ -8,90 +9,90 @@
*/
class BBK extends BaseObject
{
/**
* @var string
*/
public $Document;

/**
* @var string
*/
public $Relatie;

/**
* @var string
*/
public $Adres1;

/**
* @var string
*/
public $Adres2;

/**
* @var string
*/
public $PostCode;

/**
* @var string
*/
public $Plaats;

/**
* @var string
*/
public $Land;

/**
* @var \DateTime
*/
public $DocumentDatum;

/**
* @var \Datetime
*/
public $LeverDatum;

/**
* @var string
*/
public $Referentie;

/**
* @var float
*/
public $TotaalExcl;

/**
* @var float
*/
public $TotaalBtw;

/**
* @var float
*/
public $TotaalIncl;

/**
* @var array
*/
public $Regel;

/**
* Map the properties to a given type
*
* @var array
*/
protected $typeMap = array(
'DateTime' => array(
'DocumentDatum', 'LeverDatum'
),
'float' => array(
'TotaalExcl', 'TotaalBtw', 'TotaalIncl'
),
'Collection' => array(
'Regel'
)
);
}
/**
* @var string
*/
public $Document;

/**
* @var string
*/
public $Relatie;

/**
* @var string
*/
public $Adres1;

/**
* @var string
*/
public $Adres2;

/**
* @var string
*/
public $PostCode;

/**
* @var string
*/
public $Plaats;

/**
* @var string
*/
public $Land;

/**
* @var \DateTime
*/
public $DocumentDatum;

/**
* @var \Datetime
*/
public $LeverDatum;

/**
* @var string
*/
public $Referentie;

/**
* @var float
*/
public $TotaalExcl;

/**
* @var float
*/
public $TotaalBtw;

/**
* @var float
*/
public $TotaalIncl;

/**
* @var array
*/
public $Regel;

/**
* Map the properties to a given type.
*
* @var array
*/
protected $typeMap = [
'DateTime' => [
'DocumentDatum', 'LeverDatum',
],
'float' => [
'TotaalExcl', 'TotaalBtw', 'TotaalIncl',
],
'Collection' => [
'Regel',
],
];
}
Loading

0 comments on commit ee5dd10

Please sign in to comment.