src/Console.php
private function printHtmlHelp(ClassType $class): void
	{
		$desc = Html::el('h1');
		$desc->setText($class->getDescription());
		$this->printLine((string) $desc);

		foreach ($this->getMethod($class) as $method) {
			$desc = Html::el('pre');
			$desc->setStyle('margin-bottom: 0px');
			$desc->setText(Strings::replace($method->getDocComment(), '/(\ |\t)+/', ' '));

			$el = Html::el('a');
			$el->setHtml($method->name);

			$args = '';
			$params = [];
			foreach ($method->getParameters() as $param) {
				$p = $param->getName();
				if ($param->isDefaultValueAvailable()) {
					$value = $param->getDefaultValue();
					$p .= '=' . $this->getValue($value);
				} else {
					$args .= (empty($args) ? '?' : '&') . $param->getName() . '=';
				}
				$params[] = $p;
			}

			$link = Strings::lower(str_replace(':', '/', $this->prefix . '/' . $class->getShortName()) . '/' . $method->name);
			$el->href('/' . $link . $args);

			$line = $desc . $el;
			if (!empty($params)) {
				$line .= ' (' . implode(', ', $params) . ')';
			}
			$this->printLine($line);
		}
	}
private function printHtmlHelp(ClassType $class): void
	{
		$desc = Html::el('h1');
		$desc->setText($class->getDescription());
		$this->printLine((string) $desc);

		foreach ($this->getMethod($class) as $method) {
			$desc = Html::el('pre');
			$desc->setStyle('margin-bottom: 0px');
			$desc->setText(Strings::replace($method->getDocComment(), '/(\ |\t)+/', ' '));

			$el = Html::el('a');
			$el->setHtml($method->name);

			$args = '';
			$params = [];
			foreach ($method->getParameters() as $param) {
				$p = $param->getName();
				if ($param->isDefaultValueAvailable()) {
					$value = $param->getDefaultValue();
					$p .= '=' . $this->getValue($value);
				} else {
					$args .= (empty($args) ? '?' : '&') . $param->getName() . '=';
				}
				$params[] = $p;
			}

			$link = Strings::lower(str_replace(':', '/', $this->prefix . '/' . $class->getShortName()) . '/' . $method->name);
			$el->href('/' . $link . $args);

			$line = $desc . $el;
			if (!empty($params)) {
				$line .= ' (' . implode(', ', $params) . ')';
			}
			$this->printLine($line);
		}
	}
Vypise napovedu pro danou tridu v HTML
@param ClassType $class