. */ namespace App\Entity\Contracts; interface LogWithCommentInterface { /** * Checks if this log entry has a user provided comment. * @return bool */ public function hasComment(): bool; /** * Gets the user provided comment associated with this log entry. * Returns null if not comment was set. * @return string|null */ public function getComment(): ?string; /** * Sets the user provided comment associated with this log entry. * @param string|null $new_comment * @return $this */ public function setComment(?string $new_comment): self; }