@@ -15,10 +15,6 @@ public function audits(): MorphMany;
1515
1616 /**
1717 * Set the Audit event.
18- *
19- * @param string $event
20- *
21- * @return Auditable
2218 */
2319 public function setAuditEvent (string $ event ): Auditable ;
2420
@@ -32,14 +28,12 @@ public function getAuditEvent();
3228 /**
3329 * Get the events that trigger an Audit.
3430 *
35- * @return array
31+ * @return array<string>
3632 */
3733 public function getAuditEvents (): array ;
3834
3935 /**
4036 * Is the model ready for auditing?
41- *
42- * @return bool
4337 */
4438 public function readyForAuditing (): bool ;
4539
@@ -48,35 +42,31 @@ public function readyForAuditing(): bool;
4842 *
4943 * @throws \OwenIt\Auditing\Exceptions\AuditingException
5044 *
51- * @return array
45+ * @return array<string,mixed>
5246 */
5347 public function toAudit (): array ;
5448
5549 /**
5650 * Get the (Auditable) attributes included in audit.
5751 *
58- * @return array
52+ * @return array<string>
5953 */
6054 public function getAuditInclude (): array ;
6155
6256 /**
6357 * Get the (Auditable) attributes excluded from audit.
6458 *
65- * @return array
59+ * @return array<string>
6660 */
6761 public function getAuditExclude (): array ;
6862
6963 /**
7064 * Get the strict audit status.
71- *
72- * @return bool
7365 */
7466 public function getAuditStrict (): bool ;
7567
7668 /**
7769 * Get the audit (Auditable) timestamps status.
78- *
79- * @return bool
8070 */
8171 public function getAuditTimestamps (): bool ;
8272
@@ -89,43 +79,35 @@ public function getAuditDriver();
8979
9080 /**
9181 * Get the Audit threshold.
92- *
93- * @return int
9482 */
9583 public function getAuditThreshold (): int ;
9684
9785 /**
9886 * Get the Attribute modifiers.
9987 *
100- * @return array
88+ * @return array<string,string>
10189 */
10290 public function getAttributeModifiers (): array ;
10391
10492 /**
10593 * Transform the data before performing an audit.
10694 *
107- * @param array $data
108- *
109- * @return array
95+ * @param array<string,mixed> $data
96+ * @return array<string,mixed>
11097 */
11198 public function transformAudit (array $ data ): array ;
11299
113100 /**
114101 * Generate an array with the model tags.
115102 *
116- * @return array
103+ * @return array<string>
117104 */
118105 public function generateTags (): array ;
119106
120107 /**
121108 * Transition to another model state from an Audit.
122109 *
123- * @param Audit $audit
124- * @param bool $old
125- *
126110 * @throws \OwenIt\Auditing\Exceptions\AuditableTransitionException
127- *
128- * @return Auditable
129111 */
130112 public function transitionTo (Audit $ audit , bool $ old = false ): Auditable ;
131113}
0 commit comments