public function setType(Type $type) { $rawType = chr($type->getValue()); $this->data = substr($this->data, 0, 192) . $rawType . substr($this->data, 193); $this->selfTest(); }