for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2017 Constantin Galbenu <[email protected]>
*/
namespace Gica\Cqrs\Command\MetadataFactory;
use Gica\Cqrs\Command;
use Gica\Cqrs\Command\CommandMetadata;
use Gica\Cqrs\Command\CommandWithMetadata;
use Gica\Cqrs\Command\MetadataWrapper;
class DefaultMetadataWrapper implements MetadataWrapper
{
public function wrapCommandWithMetadata(Command $command, CommandMetadata $metadata = null): CommandWithMetadata
return new CommandWithMetadata($command, $metadata);
}