⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
vendor
/
php-ds
/
php-ds
/
src
/
View File Name :
Hashable.php
<?php namespace Ds; /** * Hashable is an interface which allows objects to be used as keys. * * It’s an alternative to spl_object_hash(), which determines an object’s hash * based on its handle: this means that two objects that are considered equal * by an implicit definition would not treated as equal because they are not * the same instance. * * @package Ds */ interface Hashable { /** * Produces a scalar value to be used as the object's hash, which determines * where it goes in the hash table. While this value does not have to be * unique, objects which are equal must have the same hash value. * * @return mixed */ public function hash(); /** * Determines if two objects should be considered equal. Both objects will * be instances of the same class but may not be the same instance. * * @param mixed $obj An instance of the same class to compare to. */ public function equals($obj): bool; }