AgreedToTerms::__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 Nowendwell\LaravelTerms\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use Nowendwell\LaravelTerms\Models\Term;
7
use Illuminate\Foundation\Events\Dispatchable;
8
9
class AgreedToTerms
10
{
11
    use Dispatchable, SerializesModels;
12
13
    public $user;
14
    public $term;
15
16
    public function __construct($user, Term $term)
17
    {
18
        $this->user = $user;
19
        $this->term = $term;
20
    }
21
}
22