コード例 #1
0
 /**
  * @return void
  */
 public function testGenerateWithPrefix()
 {
     $config = $this->generateConfig();
     $sequenceNumberSettings = $config->getDefaultSettings();
     $sequenceNumberSettings->setPrefix('DE');
     $sequenceNumber = $this->sequenceNumberFacade->generate($sequenceNumberSettings);
     $this->assertSame('DE1', $sequenceNumber);
 }
コード例 #2
0
 public function generate(SequenceNumberSettingsTransfer $sequenceNumberSettings)
 {
     return $this->sequenceNumberFacade->generate($sequenceNumberSettings);
 }