Files
opensourcepos/app/Models/Tokens/Token_quote_sequence.php
BudsieBuds e83c23cf0c Improve code style and PSR-12 compliance (#4204)
* Improve code style and PSR-12 compliance
- refactored code formatting to adhere to PSR-12 guidelines
- standardized coding conventions across the codebase
- added missing framework files and reverted markup changes
- reformatted arrays for enhanced readability
- updated language files for consistent styling and clarity
- minor miscellaneous improvements
2025-05-02 19:37:06 +02:00

37 lines
640 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);
}
/**
* @return string
*/
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);
}
}