<?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).
 */
class PolicySyncCommand
{
    public function __construct(
        protected readonly PolicyResult $result,
    ) {
    }

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