1 | <?php |
||
8 | class Shortener |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Parse a rules array. |
||
13 | * |
||
14 | * @param string $url |
||
15 | * @param array $opt = [ |
||
16 | * 'length' => 8, // Link length |
||
17 | * 'expire_at' => null, // Link expiry date |
||
18 | * 'not_before' => null, // Link validity start date |
||
19 | * ] |
||
20 | * @return ShortLink |
||
21 | */ |
||
22 | public static function shorten(string $url, array $opt = []) |
||
33 | |||
34 | } |
||
35 |