PluginProbe
The Innovative Form Builder – IvyForms / 1.5.1
The Innovative Form Builder – IvyForms v1.5.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
← All changes | backend/src/Entity/Entry/Entry.php +20 -5 0.8 → 1.5.1 View file →
@@ -6,13 +6,8 @@
6 6 */
7 7
8 8 namespace IvyForms\Entity\Entry;
9 9
10 -// phpcs:disable PSR1.Files.SideEffects
11 -if (!defined('ABSPATH')) {
12 - exit; // Exit if accessed directly
13 -}
14 -
15 10 use IvyForms\Common\Helpers\EntryHelper;
16 11 use IvyForms\ValueObjects\Entry\Entry as EntryValueObject;
17 12
18 13 /**
@@ -109,8 +104,18 @@
109 104 return $this->entry->getDateCreated();
110 105 }
111 106
112 107 /**
108 + * Set the date the entry was created.
109 + *
110 + * @param string $dateCreated The persisted creation timestamp.
111 + */
112 + public function setDateCreated(string $dateCreated): void
113 + {
114 + $this->entry->dateCreated = $dateCreated;
115 + }
116 +
117 + /**
113 118 * Get the date the entry was last edited.
114 119 *
115 120 * @return string|null The date the entry was last edited or null if not set.
116 121 */
@@ -116,8 +121,18 @@
116 121 */
117 122 public function getDateEdited(): ?string
118 123 {
119 124 return $this->entry->getDateEdited();
125 + }
126 +
127 + /**
128 + * Set the date the entry was last edited.
129 + *
130 + * @param string $dateEdited The persisted last-edited timestamp.
131 + */
132 + public function setDateEdited(string $dateEdited): void
133 + {
134 + $this->entry->dateEdited = $dateEdited;
120 135 }
121 136
122 137 /**
123 138 * Get the status of the entry.