level = self::LEVEL_INFO; $this->setTargetElement($changed_element); } /** * Sets the old data for this entry. * @param array $old_data * @return $this */ public function setOldData(array $old_data): self { $this->extra['d'] = $old_data; return $this; } /** * Returns the message associated with this edit change. * * @return string */ public function getMessage(): string { return $this->extra['m'] ?? ''; } /** * @inheritDoc */ public function hasOldDataInformations(): bool { return !empty($this->extra['d']); } /** * @inheritDoc */ public function getOldData(): array { return $this->extra['d'] ?? []; } }