Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/allure-framework/allure-php-commons/src/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/allure-framework/allure-php-commons/src/Model/Link.php
<?php

namespace Qameta\Allure\Model;

use JsonSerializable;

final class Link implements JsonSerializable
{
    use JsonSerializableTrait;

    public function __construct(
        private ?string $name = null,
        private ?string $url = null,
        private ?LinkType $type = null,
    ) {
    }

    public static function issue(string $name, ?string $url): self
    {
        return new self(
            name: $name,
            url: $url,
            type: LinkType::issue(),
        );
    }

    public static function tms(string $name, ?string $url): self
    {
        return new self(
            name: $name,
            url: $url,
            type: LinkType::tms(),
        );
    }

    public static function custom(string $name, ?string $url): self
    {
        return new self(
            name: $name,
            url: $url,
            type: LinkType::custom(),
        );
    }

    public function getName(): ?string
    {
        return $this->name;
    }

    public function setName(?string $name): self
    {
        $this->name = $name;

        return $this;
    }

    public function getUrl(): ?string
    {
        return $this->url;
    }

    public function setUrl(?string $url): self
    {
        $this->url = $url;

        return $this;
    }

    public function getType(): ?LinkType
    {
        return $this->type;
    }

    public function setType(?LinkType $type): self
    {
        $this->type = $type;

        return $this;
    }
}

Spamworldpro Mini