mirror of
https://github.com/Karaka-Management/oms-Accounting.git
synced 2026-01-11 21:38:40 +00:00
96 lines
1.7 KiB
PHP
96 lines
1.7 KiB
PHP
<?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 Modules\Accounting\Models;
|
|
|
|
|
|
/**
|
|
* Account abstraction class.
|
|
*
|
|
* @category Module
|
|
* @package Accounting
|
|
* @license OMS License 1.0
|
|
* @link http://orange-management.com
|
|
* @since 1.0.0
|
|
*/
|
|
abstract class AccountAbstract implements AccountInterface
|
|
{
|
|
|
|
/**
|
|
* Account ID.
|
|
*
|
|
* @var int
|
|
* @since 1.0.0
|
|
*/
|
|
protected $id = 0;
|
|
|
|
/**
|
|
* Type.
|
|
*
|
|
* @var \Modules\Accounting\Models\AccountType
|
|
* @since 1.0.0
|
|
*/
|
|
protected $type = null;
|
|
|
|
protected $parent = null;
|
|
|
|
/**
|
|
* Entry list.
|
|
*
|
|
* @var \Modules\Accounting\Models\EntryInterface[]
|
|
* @since 1.0.0
|
|
*/
|
|
protected $entryList = 0;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param int $id Account ID
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function __construct($id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
/**
|
|
* Get entry.
|
|
*
|
|
* @param int $id Entry ID
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getEntryById($id)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Get entry.
|
|
*
|
|
* @param \DateTime $start Interval start
|
|
* @param \DateTime $end Interval end
|
|
* @param int $dateType
|
|
*
|
|
* @internal \Modules\Accounting\Models\TimeRangeType $dateTime Time range type
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getEntriesByDate($start, $end, $dateType = TimeRangeType::RECEIPT_DATE)
|
|
{
|
|
}
|
|
}
|