AbstractNotification::via()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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