public function set($value, $data)
    {
        $id = is_object($value) ? spl_object_hash($value) : $value;
        $this->_keys[$id] = $value;
        $this->_data[$id] = $data;
        return $this;
    }
public function set($value, $data)
    {
        $id = is_object($value) ? spl_object_hash($value) : $value;
        $this->_keys[$id] = $value;
        $this->_data[$id] = $data;
        return $this;
    }
public function set ( $ value , $ data ) { $ id = is_object ( $ value ) ? spl_object_hash ( $ value ) : $ value ; $ this -> _keys [ $ id ] = $ value ; $ this -> _data [ $ id ] = $ data ; return $ this ; }
Collects an object.

@param  mixed $value A value.
@param  mixed $data  The data to map to the value.
@return self         Return `$this`.
Collects an object .