File "DiscoveredAttribute.php"

Full Path: /var/www/html/back/vendor/spatie/php-structure-discoverer/src/Data/DiscoveredAttribute.php
File size: 435 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Spatie\StructureDiscoverer\Data;

use ReflectionAttribute;

class DiscoveredAttribute
{
    public function __construct(
        public string $class,
    ) {
    }

    /**
     * @param ReflectionAttribute<object> $reflectionAttribute
     */
    public static function fromReflection(
        ReflectionAttribute $reflectionAttribute,
    ): self {
        return new self($reflectionAttribute->getName());
    }
}