Passed
Push — feature/screening-plan-redux ( 7c22ad...c62e79 )
by Chris
11:18
created

ApplicationSaved::__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
3
namespace App\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use App\Models\JobApplication;
7
8
class ApplicationSaved
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\ApplicationSaved: $id, $class, $connection, $relations
Loading history...
11
12
    public $application;
1 ignored issue
show
introduced by
Property \App\Events\ApplicationSaved::$application does not have @var annotation.
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
13
14
    /**
1 ignored issue
show
Coding Style Documentation introduced by
Doc comment for parameter "$application" missing
Loading history...
15
     * Create a new event instance.
16
     *
17
     * @return void
18
     */
19 1
    public function __construct(JobApplication $application)
20
    {
21 1
        $this->application = $application;
22 1
    }
23
24
}
25