From 271e76c352ef9f33759770c171de195d90b1bfa1 Mon Sep 17 00:00:00 2001 From: Petr Knap <8299754+petrknap@users.noreply.github.com> Date: Sat, 12 Apr 2025 16:00:19 +0200 Subject: [PATCH] chore: added comments to `Ascii` --- src/Ascii.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Ascii.php b/src/Ascii.php index 5ed3502..0d04ea2 100644 --- a/src/Ascii.php +++ b/src/Ascii.php @@ -6,6 +6,8 @@ /** * @see https://datatracker.ietf.org/doc/html/rfc20 + * + * @todo upgrade to PHP 8.2 and move values to cases */ enum Ascii: string { @@ -15,10 +17,22 @@ enum Ascii: string public const RECORD_SEPARATOR = "\x1E"; public const UNIT_SEPARATOR = "\x1F"; + /** + * Separates different files (databases) + */ case FileSeparator = self::FILE_SEPARATOR; + /** + * Separates different groups (tables) of the same file (database) + */ case GroupSeparator = self::GROUP_SEPARATOR; case Null = self::NULL; + /** + * Separates different records (rows) of the same group (table) + */ case RecordSeparator = self::RECORD_SEPARATOR; + /** + * Separates different units (columns) of the same record (row) + */ case UnitSeparator = self::UNIT_SEPARATOR; /**