OneTimeTokenCreated   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace ArgentCrusade\Stronghold\Events;
4
5
use ArgentCrusade\Stronghold\OneTimeToken;
6
use Illuminate\Queue\SerializesModels;
7
8
class OneTimeTokenCreated
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by ArgentCrusade\Stronghold...nts\OneTimeTokenCreated: $id, $relations, $class, $connection, $keyBy
Loading history...
11
12
    /** @var OneTimeToken */
13
    public $token;
14
15
    /**
16
     * OneTimeTokenCreated constructor.
17
     *
18
     * @param OneTimeToken $token
19
     */
20
    public function __construct(OneTimeToken $token)
21
    {
22
        $this->token = $token;
23
    }
24
}
25