function ExecutionOrderDependency::__construct
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ ExecutionOrderDependency.php, line 139
Class
- ExecutionOrderDependency
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\FrameworkCode
public function __construct(string $classOrCallableName, ?string $methodName = null, bool $deepClone = false, bool $shallowClone = false) {
$this->deepClone = $deepClone;
$this->shallowClone = $shallowClone;
if ($classOrCallableName === '') {
return;
}
if (str_contains($classOrCallableName, '::')) {
[
$this->className,
$this->methodName,
] = explode('::', $classOrCallableName);
}
else {
$this->className = $classOrCallableName;
$this->methodName = !empty($methodName) ? $methodName : 'class';
}
}