class RequiresPhp
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Metadata/RequiresPhp.php \PHPUnit\Metadata\RequiresPhp
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Framework\Attributes\RequiresPhp
Expanded class hierarchy of RequiresPhp
1 file declares its use of RequiresPhp
- AttributeParser.php in vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ AttributeParser.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ Attributes/ RequiresPhp.php, line 19
Namespace
PHPUnit\Framework\AttributesView source
final class RequiresPhp {
/**
* @psalm-var non-empty-string
*/
private readonly string $versionRequirement;
/**
* @psalm-param non-empty-string $versionRequirement
*/
public function __construct(string $versionRequirement) {
$this->versionRequirement = $versionRequirement;
}
/**
* @psalm-return non-empty-string
*/
public function versionRequirement() : string {
return $this->versionRequirement;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
RequiresPhp::$versionRequirement | private | property | @psalm-var non-empty-string |
RequiresPhp::versionRequirement | public | function | @psalm-return non-empty-string |
RequiresPhp::__construct | public | function | @psalm-param non-empty-string $versionRequirement |