<?php

declare(strict_types=1);

namespace app\vendor\apexl\utils\src\Utils\Class;

class UsesTrait
{
    /**
     * @param  class-string  $trait
     * @param  class-string|object  $class
     */
    public static function usesTrait(string $trait, string|object $class): bool
    {
        return in_array($trait, class_uses($class));
    }
}
