Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/allure-framework/allure-php-commons/src/Model/
Upload File :
Current File : //home/rtorresani/www/vendor/allure-framework/allure-php-commons/src/Model/Result.php

<?php

declare(strict_types=1);

namespace Qameta\Allure\Model;

abstract class Result implements ResultInterface
{
    use JsonSerializableTrait;

    private bool $excluded = false;

    public function __construct(
        protected string $uuid,
    ) {
    }

    final public function getUuid(): string
    {
        return $this->uuid;
    }

    final public function getExcluded(): bool
    {
        return $this->excluded;
    }

    final public function setExcluded(bool $excluded = true): static
    {
        $this->excluded = $excluded;

        return $this;
    }

    /**
     * @return list<string>
     */
    protected function excludeFromSerialization(): array
    {
        return ['excluded'];
    }
}