Skip to content

Commit efa97e0

Browse files
kdumaCopilot
andauthored
Update src/BinaryString.php
Co-authored-by: Copilot <[email protected]>
1 parent 51a9c51 commit efa97e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/BinaryString.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ public function toBase64(): string
2323
return base64_encode($this->value);
2424
}
2525

26+
/**
27+
* Returns a Base32-encoded string representation of the binary value.
28+
*
29+
* @param string $alphabet The alphabet to use for Base32 encoding.
30+
* @return string The Base32-encoded string.
31+
*/
2632
public function toBase32(string $alphabet = Base32::DEFAULT_ALPHABET): string
2733
{
2834
return Base32::toBase32($this->value, $alphabet);

0 commit comments

Comments
 (0)