UserSubscribed::__construct()   A
last analyzed

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 Neo\EarlyAccess\Events;
4
5
use Neo\EarlyAccess\Subscriber;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Contracts\Queue\ShouldQueue;
8
9
class UserSubscribed implements ShouldQueue
10
{
11
    use SerializesModels;
12
13
    /**
14
     * The name of the queue the job should be sent to.
15
     *
16
     * @var string|null
17
     */
18
    public $queue = 'early-access';
19
20
    /**
21
     * Subscriber instance.
22
     *
23
     * @var \Neo\EarlyAccess\Subscriber
24
     */
25
    public $subscriber;
26
27
    /**
28
     * Create a new event instance.
29
     *
30
     * @param \Neo\EarlyAccess\Subscriber $subscriber
31
     */
32
    public function __construct(Subscriber $subscriber)
33
    {
34
        $this->subscriber = $subscriber;
35
    }
36
}
37