public function visitSetIndex(Operations\SetIndex $operation) { $this->collection[$this->parameters[$operation->getIndexId()]] = $this->parameters[$operation->getValueId()]; }