Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
hashids
/
hashids
/
src
/
Math
:
HashidsInterface.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Copyright (c) Ivan Akimov. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @see https://github.com/vinkla/hashids */ namespace Hashids; interface HashidsInterface { /** * Encode parameters to generate a hash. * @param int|string|array<int, int|string> ...$numbers */ public function encode(...$numbers): string; /** * Decode a hash to the original parameter values. * @return array<int, int>|array{} */ public function decode(string $hash): array; /** Encode hexadecimal values and generate a hash string. */ public function encodeHex(string $str): string; /** Decode a hexadecimal hash. */ public function decodeHex(string $hash): string; }