Debian Codegraph @

lib/3rdParty/composer/symfony/uid/HashableInterface.php

raw symbols SCIP
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\Uid;
13
14 if (interface_exists(\Ds\Key::class)) {
15 /**
16 * @internal
17 */
18 interface HashableInterface extends \Ds\Key
19 {
20 public function equals(mixed $other): bool;
21
22 public function hash(): string;
23 }
24 } elseif (interface_exists(\Ds\Hashable::class)) {
25 /**
26 * @internal
27 */
28 interface HashableInterface extends \Ds\Hashable
29 {
30 public function hash(): string;
31 }
32 } else {
33 /**
34 * @internal
35 */
36 interface HashableInterface
37 {
38 public function equals(mixed $other): bool;
39
40 public function hash(): string;
41 }
42 }