mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
28 lines
564 B
PHP
28 lines
564 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Factories\Attributes;
|
|
|
|
use Pest\Factories\TestCaseMethodFactory;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
abstract class Attribute
|
|
{
|
|
/**
|
|
* Determine if the attribute should be placed above the class instead of above the method.
|
|
*/
|
|
public static bool $above = false;
|
|
|
|
/**
|
|
* @param array<int, string> $attributes
|
|
* @return array<int, string>
|
|
*/
|
|
public function __invoke(TestCaseMethodFactory $method, array $attributes): array // @phpstan-ignore-line
|
|
{
|
|
return $attributes;
|
|
}
|
|
}
|