Files
opensourcepos/app/Models/Tokens/Token_quote_sequence.php
objecttothis 7b224be665 PSR compliance and formatting changes
- Replaced TRUE/FALSE constants with true/false keywords
- Replaced NULL constant with null keyword
- Replaced `<?php echo` in views with shortened `<?=`
- Added missing variable declaration
- Added missing function return type in declaration
- replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
2024-06-15 17:19:15 +02:00

35 lines
540 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);
}
}