![]() 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-codeception/src/Internal/ |
<?php declare(strict_types=1); namespace Qameta\Allure\Codeception\Internal; use Qameta\Allure\Attribute\AttributeParser; use Qameta\Allure\Setup\LinkTemplateCollectionInterface; use Qameta\Allure\Model\Label; use Qameta\Allure\Model\ModelProviderInterface; use ReflectionException; /** * @internal */ final class SuiteProvider implements ModelProviderInterface { public function __construct( private ?SuiteInfo $suiteInfo, ) { } /** * @param SuiteInfo|null $suiteInfo * @param LinkTemplateCollectionInterface $linkTemplates * @return list<ModelProviderInterface> * @throws ReflectionException */ public static function createForChain( ?SuiteInfo $suiteInfo, LinkTemplateCollectionInterface $linkTemplates, ): array { $providers = [new self($suiteInfo)]; $suiteClass = $suiteInfo?->getClass(); return isset($suiteClass) ? [ ...$providers, ...AttributeParser::createForChain(classOrObject: $suiteClass, linkTemplates: $linkTemplates), ] : $providers; } public function getLinks(): array { return []; } public function getLabels(): array { return [ Label::language(null), Label::framework('codeception'), Label::parentSuite($this->suiteInfo?->getName()), Label::package($this->suiteInfo?->getName()), ]; } public function getParameters(): array { return []; } public function getDisplayName(): ?string { return null; } public function getDescription(): ?string { return null; } public function getDescriptionHtml(): ?string { return null; } public function getFullName(): ?string { return null; } }