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