<?php

declare(strict_types=1);

namespace App\Shared\Infrastructure\Messenger;

/**
 * Extracts the short (unqualified) class name from a FQCN.
 */
final class ClassNameHelper
{
    public static function short(string $fqcn): string
    {
        $parts = explode('\\', $fqcn);

        return end($parts);
    }
}
