Skip to content

Commit 6b8145f

Browse files
committed
add docblock
1 parent aec23cc commit 6b8145f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Scopes/ImportScope.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ public function scopeUnCompleted(Builder $builder): Builder
2727
return $builder->whereNull('completed_at');
2828
}
2929

30-
public function percentageComplete()
30+
/**
31+
* Get the percentage of the model completion
32+
*
33+
* @return int
34+
*/
35+
public function percentageComplete(): int
3136
{
3237
return floor(($this->processed_rows / $this->total_rows) * 100);
3338
}

0 commit comments

Comments
 (0)