inklabs/kommerce-core

View on GitHub
src/Action/Attachment/MarkAttachmentNotVisibleCommand.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace inklabs\kommerce\Action\Attachment;

use inklabs\kommerce\Lib\Command\CommandInterface;
use inklabs\kommerce\Lib\Uuid;
use inklabs\kommerce\Lib\UuidInterface;

final class MarkAttachmentNotVisibleCommand implements CommandInterface
{
    /** @var UuidInterface */
    private $attachmentId;

    public function __construct(string $attachmentId)
    {
        $this->attachmentId = Uuid::fromString($attachmentId);
    }

    public function getAttachmentId(): UuidInterface
    {
        return $this->attachmentId;
    }
}