Completed
Pull Request — master (#105)
by
unknown
22:36
created

HandleStoredEventJob::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Spatie\EventProjector;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Queue\InteractsWithQueue;
8
use Illuminate\Contracts\Queue\ShouldQueue;
9
use Illuminate\Foundation\Bus\Dispatchable;
10
use Spatie\EventProjector\Models\StoredEvent;
11
12
class HandleStoredEventJob implements ShouldQueue
13
{
14
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, HandlesStoredEvent;
15
16
    /** @var \Spatie\EventProjector\Models\StoredEvent */
17
    public $storedEvent;
18
19
    /** @var array */
20
    public $tags;
21
22
    public function __construct(StoredEvent $storedEvent, array $tags)
23
    {
24
        $this->storedEvent = $storedEvent;
25
        $this->tags = $tags;
26
    }
27
}
28