mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
8a28eb1790
This reverts merge request !5
49 lines
868 B
PHP
49 lines
868 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Documents;
|
|
|
|
use App\Classes\Interfaces\Document;
|
|
|
|
abstract class AbstractDocument implements Document
|
|
{
|
|
/** @var int */
|
|
protected $type;
|
|
|
|
/** @var int */
|
|
protected $referenceId;
|
|
|
|
/** @var string */
|
|
protected $documentType;
|
|
|
|
public function __construct(int $type, int $reference_id, string $document_type){
|
|
$this->type = $type;
|
|
$this->referenceId = $reference_id;
|
|
$this->documentType = $document_type;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getType(): int
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getReferenceId(): int
|
|
{
|
|
return $this->referenceId;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDocumentType(): string
|
|
{
|
|
return $this->documentType;
|
|
}
|
|
|
|
|
|
} |