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