MGDigital\BusQue\Implementation::getCommandSerializer PHP Метод

getCommandSerializer() публичный Метод

public getCommandSerializer ( ) : MGDigital\BusQue\CommandSerializerInterface
Результат MGDigital\BusQue\CommandSerializerInterface
    public function getCommandSerializer() : CommandSerializerInterface
    {
        return $this->commandSerializer;
    }

Usage Example

Пример #1
0
 /**
  * @Then the command with ID :arg1 should resolve to :arg2
  */
 public function theCommandWithIdShouldResolveTo($arg1, $arg2)
 {
     $serialized = $this->implementation->getQueueDriver()->readCommand('test_queue', $arg1);
     $command = $this->implementation->getCommandSerializer()->unserialize($serialized);
     \PHPUnit_Framework_Assert::assertEquals($command, $arg2);
 }