<?php

namespace NoahVet\Reef\Application\Security\Dto;

use NoahVet\Reef\Domain\Security\Policy\PolicyResult;

/**
 * DTO used to dispatch a PolicyResult for asynchronous publishing (e.g. via Symfony Messenger).
 */
final class PolicySyncCommand
{
    public function __construct(
        private readonly PolicyResult $result,
    ) {
    }

    public function getResult(): PolicyResult
    {
        return $this->result;
    }
}
