public static function simpleMapping($command, string $commandNamespace, string $handlerNamespace)
    {
        $command = str_replace($commandNamespace, '', get_class($command));

        return $handlerNamespace.'\\'.trim($command, '\\').'Handler';
    }
public static function simpleMapping($command, string $commandNamespace, string $handlerNamespace)
    {
        $command = str_replace($commandNamespace, '', get_class($command));

        return $handlerNamespace.'\\'.trim($command, '\\').'Handler';
    }
public static function simpleMapping ( $ command , string $ commandNamespace , string $ handlerNamespace ) { $ command = str_replace ( $ commandNamespace , '' , get_class ( $ command ) ) ; return $ handlerNamespace . '\\' . trim ( $ command , '\\' ) . 'Handler' ; }
Map the command to a handler within a given root namespace.

@param object $command
@param string $commandNamespace
@param string $handlerNamespace

@return string
Map the command to a handler within a given root namespace .