xprt64/cqrs-es

View on GitHub
src/Dudulina/Command/MetadataFactory/DefaultMetadataWrapper.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Copyright (c) 2017 Constantin Galbenu <xprt64@gmail.com>
 */

namespace Dudulina\Command\MetadataFactory;


use Dudulina\Command;
use Dudulina\Command\CommandWithMetadata;
use Dudulina\Command\MetadataWrapper;

class DefaultMetadataWrapper implements MetadataWrapper
{

    public function wrapCommandWithMetadata(Command $command, $metadata = null): CommandWithMetadata
    {
        return new CommandWithMetadata($command, $metadata);
    }
}