Skip to content

Commit a3ed468

Browse files
authored
Updated PHPDOC (#11)
* Updated PHPDOC
1 parent 594b3dd commit a3ed468

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/Models/BaseModel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ public function passingChanges(array $changes, $model) : Collection
5151
]);
5252
}
5353

54+
/**
55+
* @param Collection $passing_changes
56+
* @param int $event_type
57+
* @param Model $model
58+
*/
5459
public function saveChanges(Collection $passing_changes, int $event_type, $model) : void
5560
{
5661
$passing_changes

src/Observers/AuditLogObserver.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public function restored($model) : void
5252
}
5353

5454
/**
55-
* @param $model
56-
* @param $relationName
57-
* @param $pivotIds
55+
* @param Model $model
56+
* @param string $relationName
57+
* @param array $pivotIds
5858
*/
5959
public function pivotDetached($model, string $relationName, array $pivotIds)
6060
{
@@ -66,7 +66,7 @@ public function pivotDetached($model, string $relationName, array $pivotIds)
6666
* Returns an instance of the AuditLogModel for the specific
6767
* model you provide.
6868
*
69-
* @param $model
69+
* @param Model $model
7070
*
7171
* @return mixed
7272
*/

0 commit comments

Comments
 (0)