First draft ideas for edifact structure

This commit is contained in:
Dennis Eichhorn 2017-10-16 13:39:46 +02:00
parent 99d4d80d19
commit f9296042ae
3 changed files with 135 additions and 0 deletions

View File

@ -0,0 +1,47 @@
<?php
/**
* Orange Management
*
* PHP Version 7.1
*
* @category TBD
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
namespace phpOMS\Utils\EDI\Edifact\Components;
/**
* EDI Header
*
* @category Framework
* @package phpOMS\Utils\Converter
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
class BGM
{
private $id = '';
private $date = null;
private $subersion = '06A';
private $un = 'UN';
private $bdewVersion = '2.6d';
public function __construct(string $type, string $version, string $subersion, string $un, string $bdewVersion)
{
$this->type = $type;
$this->version = $version;
$this->subersion = $subersion;
$this->un = $un;
$this->bdewVersion = $bdewVersion;
}
}

View File

@ -0,0 +1,47 @@
<?php
/**
* Orange Management
*
* PHP Version 7.1
*
* @category TBD
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
namespace phpOMS\Utils\EDI\Edifact\Components;
/**
* EDI Header
*
* @category Framework
* @package phpOMS\Utils\Converter
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
class UNH
{
private $type = '';
private $version = 'D';
private $subersion = '06A';
private $un = 'UN';
private $bdewVersion = '2.6d';
public function __construct(string $type, string $version, string $subersion, string $un, string $bdewVersion)
{
$this->type = $type;
$this->version = $version;
$this->subersion = $subersion;
$this->un = $un;
$this->bdewVersion = $bdewVersion;
}
}

View File

@ -0,0 +1,41 @@
<?php
/**
* Orange Management
*
* PHP Version 7.1
*
* @category TBD
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
namespace phpOMS\Utils\EDI\Edifact;
use phpOMS\Utils\EDI\Edifact\Components\UNH;
use phpOMS\Utils\EDI\Edifact\Components\BGM;
/**
* EDI Header
*
* @category Framework
* @package phpOMS\Utils\Converter
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
class INVOIC
{
private $unh = null;
private $bgm = null;
public function __construct()
{
$this->unh = new UNH('INVOIC', 'D', '06A', 'UN', '2.6d');
$this->bgm = new BGM();
}
}