Работает обработка ссылок на таблицы с численностью
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user