MGDigital\BusQue\Handler\AbstractHandler::process PHP Method

process() protected method

protected process ( MGDigital\BusQue\BusQueCommandInterface $command ) : array
$command MGDigital\BusQue\BusQueCommandInterface
return array
    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];
    }
AbstractHandler