/** * Parses the message for this type * * @param array * @throws \InvalidArgumentException */ public function parseFromArray() { parent::parseFromArray(); $saved = $this->value; $this->value = round($this->value / 2); if ($saved % 2 === 1) { $this->value = -$this->value; } }