Your IP : 216.73.216.220


Current Path : /var/www/html/vendor/phpcollection/phpcollection/src/PhpCollection/
Upload File :
Current File : //var/www/html/vendor/phpcollection/phpcollection/src/PhpCollection/ObjectBasicsHandler.php

<?php

namespace PhpCollection;

/**
 * Interface for external handlers that provide ObjectBasics functionality.
 *
 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 */
interface ObjectBasicsHandler
{
    /**
     * @param object $object This object is guaranteed to be of the type the handler was registered for.
     * @return string|integer
     */
    public function hash($object);

    /**
     * @param object $firstObject This object is guaranteed to be of the type the handler was registered for.
     * @param object $secondObject This might be an object of any class.
     * @return boolean
     */
    public function equals($firstObject, $secondObject);
}