CantUpdate   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10
ccs 2
cts 2
cp 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A via() 0 3 1
A toMail() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Notifications\User\Email;
6
7
use App\Mail\User\Email\CantUpdate as CantUpdateMail;
8
use App\Models\User;
9
use Illuminate\Notifications\Notification;
10
11
final class CantUpdate extends Notification
12
{
13
    public function via(): array
14
    {
15
        return ['mail'];
16
    }
17 2
18
    public function toMail(User $user): CantUpdateMail
19 2
    {
20
        return new CantUpdateMail($user);
21
    }
22
}
23