getId() public method

public getId ( ) : string | null
return string | null
Beispiel #1
0
 protected function process(BusQueCommandInterface $command) : array
 {
     $baseCommand = $command->getCommand();
     $queueName = $this->implementation->getQueueResolver()->resolveQueueName($baseCommand);
     $commandId = $command->getId() ?: $this->implementation->getCommandIdGenerator()->generateId($baseCommand);
     $serialized = $this->implementation->getCommandSerializer()->serialize($baseCommand);
     return [$queueName, $commandId, $serialized];
 }