Store
last analyzed

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 42
ccs 0
cts 0
cp 0
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
all() 0 1 ?
push() 0 1 ?
forget() 0 1 ?
isEmpty() 0 1 ?
isNotEmpty() 0 1 ?
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanedev\Notify\Contracts;
6
7
use Illuminate\Support\Collection;
8
9
/**
10
 * Interface  Store
11
 *
12
 * @author    ARCANEDEV <[email protected]>
13
 */
14
interface Store
15
{
16
    /* -----------------------------------------------------------------
17
     |  Main Methods
18
     | -----------------------------------------------------------------
19
     */
20
21
    /**
22
     * Get all the notifications.
23
     *
24
     * @return \Illuminate\Support\Collection
25
     */
26
    public function all(): Collection;
27
28
    /**
29
     * Push the new notification.
30
     *
31
     * @param  array  $notification
32
     */
33
    public function push(array $notification);
34
35
    /**
36
     * Forget the notifications.
37
     *
38
     * @return void
39
     */
40
    public function forget();
41
42
    /**
43
     * Check if it has notifications.
44
     *
45
     * @return bool
46
     */
47
    public function isEmpty(): bool;
48
49
    /**
50
     * Check if there is no notifications.
51
     *
52
     * @return bool
53
     */
54
    public function isNotEmpty(): bool;
55
}
56