Passed
Push — master ( 0b0de5...653fca )
by Maksim
04:50 queued 02:04
created

TestSingleBinaryKeyJob   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 1
f 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace MaksimM\CompositePrimaryKeys\Tests\Stubs;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Contracts\Queue\ShouldQueue;
7
use Illuminate\Queue\SerializesModels;
8
9
class TestSingleBinaryKeyJob implements ShouldQueue
10
{
11
    use Queueable, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by MaksimM\CompositePrimary...\TestSingleBinaryKeyJob: $id, $class, $relations
Loading history...
12
13
    private $model;
14
15
    /**
16
     * Create a new job instance.
17
     */
18
    public function __construct(TestBinaryRoleHex $binaryRole)
19
    {
20
        $this->model = $binaryRole;
21
    }
22
23
    /**
24
     * Execute the job.
25
     */
26
    public function handle()
27
    {
28
        $this->model->update(['name' => 'Bar']);
29
    }
30
}
31