2017-09-09 23:55:21 -05:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2017-09-09 23:55:21 -05:00
|
|
|
namespace Pterodactyl\Contracts\Extensions;
|
|
|
|
|
|
|
|
|
|
use Hashids\HashidsInterface as VendorHashidsInterface;
|
2026-10-05 18:10:18 -04:00
|
|
|
use InvalidArgumentException;
|
2017-09-09 23:55:21 -05:00
|
|
|
|
|
|
|
|
interface HashidsInterface extends VendorHashidsInterface
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Decode an encoded hashid and return the first result.
|
|
|
|
|
*
|
2026-10-05 18:10:18 -04:00
|
|
|
* @throws InvalidArgumentException
|
2017-09-09 23:55:21 -05:00
|
|
|
*/
|
2026-10-05 18:10:18 -04:00
|
|
|
public function decodeFirst(string $encoded, ?string $default = null): int|string|null;
|
2017-09-09 23:55:21 -05:00
|
|
|
}
|