<?php

namespace FiloBlu\Esb\Api;

use FiloBlu\Esb\Api\Data\EventInterface;
use Magento\Framework\Exception\NoSuchEntityException;

/**
 * Interface EventResolverInterface
 * @package FiloBlu\Esb\Api
 */
interface EventResolverInterface
{
    /**
     * @param string $name name
     * @return EventInterface
     * @throws NoSuchEntityException
     */
    public function get($name): EventInterface;

    /**
     * @return EventInterface[]
     */
    public function getAll(): array;
}
