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/AttachmentResult.php
<?php

declare(strict_types=1);

namespace Qameta\Allure\Model;

final class AttachmentResult extends Result
{
    protected ?string $name = null;

    protected ?string $source = null;

    protected ?string $type = null;

    protected ?string $fileExtension = null;

    public function getResultType(): ResultType
    {
        return ResultType::attachment();
    }

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

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

        return $this;
    }

    public function getSource(): ?string
    {
        return $this->source;
    }

    public function setSource(?string $source): self
    {
        $this->source = $source;

        return $this;
    }

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

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

    public function getFileExtension(): ?string
    {
        return $this->fileExtension;
    }

    public function setFileExtension(?string $fileExtension): self
    {
        $this->fileExtension = $fileExtension;

        return $this;
    }

    protected function excludeFromSerialization(): array
    {
        return ['uuid', 'fileExtension', ...parent::excludeFromSerialization()];
    }

    public function getNestedResults(): array
    {
        return [];
    }
}

Spamworldpro Mini