AbstractNotification   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A via() 0 3 1
1
<?php
2
3
namespace ByTIC\Notifications\Notifications;
4
5
use Nip\Records\AbstractModels\Record;
6
7
/**
8
 * Class AbstractNotification
9
 * @package ByTIC\Notifications
10
 */
11
abstract class AbstractNotification
12
{
13
    /**
14
     * The unique identifier for the notification.
15
     *
16
     * @var string
17
     */
18
    public $id;
19
20
    /** @noinspection PhpUnusedParameterInspection
21
     *
22
     * @param Record $notifiable
23
     * @return array
24
     */
25
    public function via($notifiable)
26
    {
27
        return ['emailDb'];
28
    }
29
30
    /**
31
     * @param $notifiable
32
     * @return mixed
33
     */
34
    abstract public function toMailDb($notifiable);
35
}
36