src/Server.php
private function findObjectWithKeyHandle(
        array $objects,
        string $keyHandle
    ) {
        foreach ($objects as $object) {
            if (hash_equals($object->getKeyHandleBinary(), $keyHandle)) {
                return $object;
            }
        }
        return null;
    }
private function findObjectWithKeyHandle(
        array $objects,
        string $keyHandle
    ) {
        foreach ($objects as $object) {
            if (hash_equals($object->getKeyHandleBinary(), $keyHandle)) {
                return $object;
            }
        }
        return null;
    }
private function findObjectWithKeyHandle ( array $ objects , string $ keyHandle ) { foreach ( $ objects as $ object ) { if ( hash_equals ( $ object -> getKeyHandleBinary ( ) , $ keyHandle ) ) { return $ object ; } } return null ; }
Searches through the provided array of objects, and looks for a matching
key handle value. If one is found, it is returned; if not, this returns
null.

TODO: create and implement a HasKeyHandle interface of sorts to type
this better
@param array $objects haystack to search
@param string $keyHandle key handle to find in haystack
@return mixed element from haystack
@return null if no element matches
Searches through the provided array of objects and looks for a matching key handle value . If one is found it is returned ; if not this returns null .