More Setters Provided

This commit is contained in:
devansh bawari 2021-06-22 19:03:51 +05:30
parent d79dbb066c
commit 092aaf1d4c
1 changed files with 34 additions and 1 deletions

View File

@ -42,7 +42,40 @@ class Sequencer implements SequencerContract
public $lastId = 0;
/**
* Set order number generator class from the core config.
* Set length from the core config.
*
* @param string $configKey
* @return void
*/
public function setLength($configKey)
{
$this->length = core()->getConfigData($configKey);
}
/**
* Set prefix from the core config.
*
* @param string $configKey
* @return void
*/
public function setPrefix($configKey)
{
$this->prefix = core()->getConfigData($configKey);
}
/**
* Set suffix from the core config.
*
* @param string $configKey
* @return void
*/
public function setSuffix($configKey)
{
$this->suffix = core()->getConfigData($configKey);
}
/**
* Set generator class from the core config.
*
* @param string $configKey
* @return void