DatabaseNotificationCollection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A markAsRead() 0 6 1
1
<?php
2
3
namespace Illuminate\Notifications;
4
5
use Illuminate\Database\Eloquent\Collection;
6
7
class DatabaseNotificationCollection extends Collection
8
{
9
    /**
10
     * Mark all notification as read.
11
     *
12
     * @return void
13
     */
14
    public function markAsRead()
15
    {
16
        $this->each(function ($notification) {
17
            $notification->markAsRead();
18
        });
19
    }
20
}
21