mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-29 03:31:10 -05:00
35 lines
540 B
PHP
35 lines
540 B
PHP
<?php
|
|
|
|
namespace App\Models\Tokens;
|
|
|
|
use app\Models\Appconfig;
|
|
use ReflectionException;
|
|
|
|
/**
|
|
* Token_quote_sequence class
|
|
*
|
|
* @property appconfig appconfig
|
|
*
|
|
*/
|
|
class Token_quote_sequence extends Token
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->appconfig = model('AppConfig');
|
|
|
|
}
|
|
|
|
public function token_id(): string
|
|
{
|
|
return 'QSEQ';
|
|
}
|
|
|
|
/**
|
|
* @throws ReflectionException
|
|
*/
|
|
public function get_value(bool $save = TRUE): string
|
|
{
|
|
return $this->appconfig->acquire_next_quote_sequence($save);
|
|
}
|
|
} |