timestamp)) { throw new AllreadySetException('The timestamp is allready set. An Update is not possible!'); } $this->timestamp = $timestamp; } /** * @return \DateTime */ public function getTimestamp(): \DateTime { return $this->timestamp; } }