/var/www/html/back/app/Contracts/CommandBusContract.php
<?php

declare(strict_types=1);

namespace App\Contracts;

interface CommandBusContract
{
    public function dispatch(object $command): mixed;
    public function register(array $map): void;
}