<?php
/**
 * @license MIT
 *
 * Modified by kramar on 25-June-2026 using {@see https://github.com/BrianHenryIE/strauss}.
 */

declare(strict_types=1);

namespace Kramar\Vendor\Sabberworm\CSS;

/**
 * Provides a method to obtain the short name of the instantiated class (i.e. without namespace prefix).
 *
 * @internal
 */
trait ShortClassNameProvider
{
    /**
     * @return non-empty-string
     */
    private function getShortClassName(): string
    {
        return (new \ReflectionClass($this))->getShortName();
    }
}
