public function encode() { $this->reset(); $this->putEntityId($this->eid1); $this->putEntityId($this->eid2); }