class Html
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Logging/TestDox/Html.php \PHPUnit\TextUI\XmlConfiguration\Logging\TestDox\Html
- 11.1.x vendor/squizlabs/php_codesniffer/src/Generators/HTML.php \PHP_CodeSniffer\Generators\HTML
- 11.1.x core/lib/Drupal/Core/Render/Element/Html.php \Drupal\Core\Render\Element\Html
- 11.1.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@internal This class is not covered by the backward compatibility promise for PHPUnit
@psalm-immutable
Hierarchy
- class \PHPUnit\TextUI\XmlConfiguration\CodeCoverage\Report\Html
Expanded class hierarchy of Html
2 files declare their use of Html
- CodeCoverage.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ CodeCoverage/ CodeCoverage.php - Loader.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ Loader.php
59 string references to 'Html'
- AccessDeniedSubscriber::getHandledFormats in core/
modules/ user/ src/ EventSubscriber/ AccessDeniedSubscriber.php - Specifies the request formats this subscriber will respond to.
- AdminRouteSubscriber::isHtmlRoute in core/
modules/ system/ src/ EventSubscriber/ AdminRouteSubscriber.php - Determines whether the given route is an HTML route.
- AutoEscapeTokenParser::parse in vendor/
twig/ twig/ src/ TokenParser/ AutoEscapeTokenParser.php - Parses a token and returns a node.
- CodeBlock::defaultConfiguration in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ CodeBlock.php - CodeBlock::defaultConfiguration in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ CodeBlock.php
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ CodeCoverage/ Report/ Html.php, line 22
Namespace
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\ReportView source
final class Html {
private readonly Directory $target;
private readonly int $lowUpperBound;
private readonly int $highLowerBound;
private readonly string $colorSuccessLow;
private readonly string $colorSuccessMedium;
private readonly string $colorSuccessHigh;
private readonly string $colorWarning;
private readonly string $colorDanger;
private readonly ?string $customCssFile;
public function __construct(Directory $target, int $lowUpperBound, int $highLowerBound, string $colorSuccessLow, string $colorSuccessMedium, string $colorSuccessHigh, string $colorWarning, string $colorDanger, ?string $customCssFile) {
$this->target = $target;
$this->lowUpperBound = $lowUpperBound;
$this->highLowerBound = $highLowerBound;
$this->colorSuccessLow = $colorSuccessLow;
$this->colorSuccessMedium = $colorSuccessMedium;
$this->colorSuccessHigh = $colorSuccessHigh;
$this->colorWarning = $colorWarning;
$this->colorDanger = $colorDanger;
$this->customCssFile = $customCssFile;
}
public function target() : Directory {
return $this->target;
}
public function lowUpperBound() : int {
return $this->lowUpperBound;
}
public function highLowerBound() : int {
return $this->highLowerBound;
}
public function colorSuccessLow() : string {
return $this->colorSuccessLow;
}
public function colorSuccessMedium() : string {
return $this->colorSuccessMedium;
}
public function colorSuccessHigh() : string {
return $this->colorSuccessHigh;
}
public function colorWarning() : string {
return $this->colorWarning;
}
public function colorDanger() : string {
return $this->colorDanger;
}
/**
* @psalm-assert-if-true !null $this->customCssFile
*/
public function hasCustomCssFile() : bool {
return $this->customCssFile !== null;
}
/**
* @throws NoCustomCssFileException
*/
public function customCssFile() : string {
if (!$this->hasCustomCssFile()) {
throw new NoCustomCssFileException();
}
return $this->customCssFile;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Html::$colorDanger | private | property | |
Html::$colorSuccessHigh | private | property | |
Html::$colorSuccessLow | private | property | |
Html::$colorSuccessMedium | private | property | |
Html::$colorWarning | private | property | |
Html::$customCssFile | private | property | |
Html::$highLowerBound | private | property | |
Html::$lowUpperBound | private | property | |
Html::$target | private | property | |
Html::colorDanger | public | function | |
Html::colorSuccessHigh | public | function | |
Html::colorSuccessLow | public | function | |
Html::colorSuccessMedium | public | function | |
Html::colorWarning | public | function | |
Html::customCssFile | public | function | |
Html::hasCustomCssFile | public | function | @psalm-assert-if-true !null $this->customCssFile |
Html::highLowerBound | public | function | |
Html::lowUpperBound | public | function | |
Html::target | public | function | |
Html::__construct | public | function |