<?php

declare(strict_types=1);

/*
 * This file is part of the Ferienpass package.
 *
 * (c) Richard Henkenjohann <richard@ferienpass.online>
 *
 * For more information visit the project website <https://ferienpass.online>
 * or the documentation under <https://docs.ferienpass.online>.
 */

namespace Ferienpass\CoreBundle\Messenger;

use Symfony\Component\Messenger\Stamp\StampInterface;

/**
 * Carries the dispatching tenant to the worker. A message queued while serving
 * one municipality must be handled as that municipality, whichever worker picks
 * it up.
 */
final class TenantStamp implements StampInterface
{
    public function __construct(private readonly string $slug)
    {
    }

    public function getSlug(): string
    {
        return $this->slug;
    }
}
