AgreedToTerms   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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