Preference   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace Usamamuneerchaudhary\Notifier\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
use Usamamuneerchaudhary\Notifier\Services\PreferenceService;
7
8
/**
9
 * @method static array getUserPreferences($user, string $eventKey)
10
 * @method static array getChannelsForEvent(\Usamamuneerchaudhary\Notifier\Models\NotificationEvent $event, ?\Usamamuneerchaudhary\Notifier\Models\NotificationPreference $preference)
11
 * @method static bool shouldSendToChannel($user, string $channelType, array $preferences)
12
 *
13
 * @see \Usamamuneerchaudhary\Notifier\Services\PreferenceService
14
 */
15
class Preference extends Facade
16
{
17
    /**
18
     * Get the registered name of the component.
19
     */
20
    protected static function getFacadeAccessor(): string
21
    {
22
        return PreferenceService::class;
23
    }
24
}
25
26