| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace SpomkyLabs\Pki\ASN1\Feature; |
| 6 | |
| 7 | /** |
| 8 | * Interface for classes that may be cast to string. |
| 9 | */ |
| 10 | interface Stringable |
| 11 | { |
| 12 | /** |
| 13 | * Convert object to string. |
| 14 | */ |
| 15 | public function __toString(): string; |
| 16 | |
| 17 | /** |
| 18 | * Get the string representation of the type. |
| 19 | */ |
| 20 | public function string(): string; |
| 21 | } |