GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 8ac9c6...86556a )
by Nikhil
12:00
created

PurchaseWasDeleted   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 2
dl 0
loc 19
rs 10
ccs 3
cts 3
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace App\Events;
4
5
use App\Purchase;
6
use Illuminate\Queue\SerializesModels;
7
8
class PurchaseWasDeleted extends Event
9
{
10
    use SerializesModels;
11
12
    /**
13
     * @var Purchase
14
     */
15
    public $purchase;
16
17
    /**
18
     * Create a new event instance.
19
     *
20
     * @param Purchase $purchase
21
     */
22 1
    public function __construct(Purchase $purchase)
23
    {
24 1
        $this->purchase = $purchase;
25 1
    }
26
}
27