helpscout/bus

View on GitHub
src/Contracts/Resolver.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace HelpScout\Bus\Contracts;

/**
 * Interface Resolver
 *
 * @package HelpScout\Bus\Contracts
 */
interface Resolver
{
    /**
     * Locate a handler for a command
     *
     * @param Command $command
     * @param null    $handler
     *
     * @return mixed
     */
    public function resolve(Command $command, $handler = null);
}