Skip to content

Commit 81ccebf

Browse files
authored
Merge pull request #10 from sander3/data-retention-feature
Missing comment and type hinting added
2 parents be3f90c + 9cc6215 commit 81ccebf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Jobs/Cleanup/CleanupJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CleanupJob implements ShouldQueue
1919
public $users;
2020

2121
/**
22-
* @var
22+
* @var \Soved\Laravel\Gdpr\Jobs\Cleanup\CleanupStrategy
2323
*/
2424
public $strategy;
2525

src/Retentionable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
namespace Soved\Laravel\Gdpr;
44

5+
use Carbon\Carbon;
6+
57
trait Retentionable
68
{
79
/**
810
* Get the user's last activity.
911
*
1012
* @return \Illuminate\Support\Carbon
1113
*/
12-
public function getLastActivityAttribute()
14+
public function getLastActivityAttribute(): Carbon
1315
{
1416
return $this->updated_at;
1517
}

0 commit comments

Comments
 (0)