public function has($object) : bool
    {
        $hash = spl_object_hash($object);

        return isset($this->objects[$hash]);
    }
public function has($object) : bool
    {
        $hash = spl_object_hash($object);

        return isset($this->objects[$hash]);
    }
public function has ( $ object ) : bool { $ hash = spl_object_hash ( $ object ) ; return isset ( $ this -> objects [ $ hash ] ) ; }
Returns whether this storage contains the given object.

@param object $object The object to test.

@return bool True if this storage contains the object, false otherwise.
Returns whether this storage contains the given object .