Passed
Push — master ( 0f7c6a...f2dd02 )
by Adam
11:07
created

PurgeNotificationsCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 1
1
<?php
2
3
namespace Coyote\Console\Commands;
4
5
use Coyote\Repositories\Contracts\NotificationRepositoryInterface;
6
use Illuminate\Console\Command;
7
8
class PurgeNotificationsCommand extends Command
9
{
10
    /**
11
     * The name and signature of the console command.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'notifications:purge';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Purge old notifications.';
23
24
    public function handle(NotificationRepositoryInterface $notification)
25
    {
26
        $notification->purge();
27
28
        $this->info('Done.');
29
    }
30
}
31