public function set($object, $data = null) : void
    {
        $hash = spl_object_hash($object);

        $this->objects[$hash] = $object;
        $this->data[$hash] = $data;
    }
public function set($object, $data = null) : void
    {
        $hash = spl_object_hash($object);

        $this->objects[$hash] = $object;
        $this->data[$hash] = $data;
    }
public function set ( $ object , $ data = null ) : void { $ hash = spl_object_hash ( $ object ) ; $ this -> objects [ $ hash ] = $ object ; $ this -> data [ $ hash ] = $ data ; }
Stores an object with associated data.

@param object $object The object.
@param mixed  $data   The data to store.

@return void
Stores an object with associated data .