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