Skip to content

Commit 82750aa

Browse files
authored
Merge pull request #22 from petrknap/ascii
Added comments to `Ascii`
2 parents 3c3d9a8 + 271e76c commit 82750aa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Ascii.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
/**
88
* @see https://datatracker.ietf.org/doc/html/rfc20
9+
*
10+
* @todo upgrade to PHP 8.2 and move values to cases
911
*/
1012
enum Ascii: string
1113
{
@@ -15,10 +17,22 @@ enum Ascii: string
1517
public const RECORD_SEPARATOR = "\x1E";
1618
public const UNIT_SEPARATOR = "\x1F";
1719

20+
/**
21+
* Separates different files (databases)
22+
*/
1823
case FileSeparator = self::FILE_SEPARATOR;
24+
/**
25+
* Separates different groups (tables) of the same file (database)
26+
*/
1927
case GroupSeparator = self::GROUP_SEPARATOR;
2028
case Null = self::NULL;
29+
/**
30+
* Separates different records (rows) of the same group (table)
31+
*/
2132
case RecordSeparator = self::RECORD_SEPARATOR;
33+
/**
34+
* Separates different units (columns) of the same record (row)
35+
*/
2236
case UnitSeparator = self::UNIT_SEPARATOR;
2337

2438
/**

0 commit comments

Comments
 (0)