mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-17 22:07:55 -05:00
34 lines
601 B
PHP
34 lines
601 B
PHP
<?php
|
|
|
|
namespace App\Models\Tokens;
|
|
|
|
use App\Models\Appconfig;
|
|
use ReflectionException;
|
|
|
|
/**
|
|
* Token_quote_sequence class
|
|
*/
|
|
class Token_quote_sequence extends Token
|
|
{
|
|
private Appconfig $appconfig;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->appconfig = model(Appconfig::class);
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|