* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Framework\Attributes; use Attribute; /** * @immutable * * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit */ #[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] final readonly class CoversClassesThatImplementInterface { /** * @var class-string */ private string $interfaceName; /** * @param class-string $interfaceName */ public function __construct(string $interfaceName) { $this->interfaceName = $interfaceName; } /** * @return class-string */ public function interfaceName(): string { return $this->interfaceName; } }