class CustomCssFile
@psalm-immutable
Hierarchy
- class \SebastianBergmann\CodeCoverage\Report\Html\CustomCssFile
Expanded class hierarchy of CustomCssFile
1 file declares its use of CustomCssFile
- CodeCoverage.php in vendor/
phpunit/ phpunit/ src/ Runner/ CodeCoverage.php
1 string reference to 'CustomCssFile'
- Loader::codeCoverage in vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ Loader.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Html/ CustomCssFile.php, line 18
Namespace
SebastianBergmann\CodeCoverage\Report\HtmlView source
final class CustomCssFile {
private readonly string $path;
public static function default() : self {
return new self(__DIR__ . '/Renderer/Template/css/custom.css');
}
/**
* @throws InvalidArgumentException
*/
public static function from(string $path) : self {
if (!is_file($path)) {
throw new InvalidArgumentException('$path does not exist');
}
return new self($path);
}
private function __construct(string $path) {
$this->path = $path;
}
public function path() : string {
return $this->path;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
CustomCssFile::$path | private | property | |
CustomCssFile::default | public static | function | |
CustomCssFile::from | public static | function | |
CustomCssFile::path | public | function | |
CustomCssFile::__construct | private | function |