Current File : //var/www/vinorea/vendor/league/tactician/src/Handler/CommandNameExtractor/CommandNameExtractor.php
<?php

namespace League\Tactician\Handler\CommandNameExtractor;

use League\Tactician\Exception\CanNotDetermineCommandNameException;

/**
 * Extract the name from a command so that the name can be determined
 * by the context better than simply the class name
 */
interface CommandNameExtractor
{
    /**
     * Extract the name from a command
     *
     * @param object $command
     *
     * @return string
     *
     * @throws CannotDetermineCommandNameException
     */
    public function extract($command);
}