VoucherRedeemed::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace BeyondCode\Vouchers\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use BeyondCode\Vouchers\Models\Voucher;
7
8
class VoucherRedeemed
9
{
10
    use SerializesModels;
11
12
    public $user;
13
14
    /** @var Voucher */
15
    public $voucher;
16
17
    public function __construct($user, Voucher $voucher)
18
    {
19
        $this->user = $user;
20
        $this->voucher = $voucher;
21
    }
22
}