src/ConcurrentPhpUtils/ObjectStorage.php
public function setInfo(Threaded $object, $data)
    {
        foreach ($this->data as $key => $value) {
            if ($object->equals($value)) {
                $this->info[$key] = $data;
                break;
            }
        }
    }
public function setInfo(Threaded $object, $data)
    {
        foreach ($this->data as $key => $value) {
            if ($object->equals($value)) {
                $this->info[$key] = $data;
                break;
            }
        }
    }
public function setInfo ( Threaded $ object , $ data ) { foreach ( $ this -> data as $ key => $ value ) { if ( $ object -> equals ( $ value ) ) { $ this -> info [ $ key ] = $ data ; break ; } } }
Sets the data associated with the current iterator entry

@param Threaded $object
@param mixed $data
@return void
Sets the data associated with the current iterator entry