Completed
Push — master ( 52970f...c6d773 )
by Tristan
24:57 queued 10:40
created

JobSaved::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use App\Models\JobPoster;
7
8
class JobSaved
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class JobSaved
Loading history...
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\JobSaved: $id, $class, $connection, $relations
Loading history...
11
12
    public $job;
13
14
    /**
0 ignored issues
show
Coding Style introduced by
Parameter $job should have a doc-comment as per coding-style.
Loading history...
15
     * Create a new event instance.
16
     *
17
     * @return void
18
     */
19 12
    public function __construct(JobPoster $job)
20
    {
21 12
        $this->job = $job;
22 12
    }
23
}
24