Работает обработка ссылок на таблицы с численностью

This commit is contained in:
2024-09-06 14:11:38 +03:00
parent 04374fef40
commit 2be45826c1
1698 changed files with 138656 additions and 174 deletions

View File

@@ -1,26 +1,29 @@
<?php
namespace ContingentParser;
class Printer
final class Printer
{
public static function print(string $text = '', string $color = '') : void
{
$color = Color::create($color);
public static function print(
int|string $text = '',
Color $color = Color::WHITE
): void {
print($color->tostring().$text.Color::WHITE->tostring());
}
public static function println(string $text = '', string $color = '') : void
{
$color = Color::create($color);
public static function println(
int|string $text = '',
Color $color = Color::WHITE
): void {
print($color->tostring().$text.Color::WHITE->tostring());
print(PHP_EOL);
}
public static function print_r(mixed $value, string $color = '') : void
{
$color = Color::create($color);
public static function print_r(
mixed $value,
Color $color = Color::WHITE
): void {
print($color->tostring());
print_r($value);
print(Color::WHITE->tostring());
}
}
}