Your IP : 216.73.217.95


Current Path : /home/rtorresani/www/vendor/allure-framework/allure-php-commons/src/Legacy/Annotation/
Upload File :
Current File : //home/rtorresani/www/vendor/allure-framework/allure-php-commons/src/Legacy/Annotation/Title.php

<?php

declare(strict_types=1);

namespace Yandex\Allure\Adapter\Annotation;

use Doctrine\Common\Annotations\Annotation\Required;
use Qameta\Allure\Attribute;
use Qameta\Allure\Legacy\Annotation\LegacyAnnotationInterface;

/**
 * @Annotation
 * @Target({"CLASS", "METHOD"})
 * @deprecated Use native PHP attribute {@see Attribute\DisplayName}
 * @psalm-suppress MissingConstructor
 */
class Title implements LegacyAnnotationInterface
{
    /**
     * @Required
     */
    public string $value;

    public function convert(): Attribute\DisplayName
    {
        return new Attribute\DisplayName($this->value);
    }
}