Job::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace App\Jobs\Tournament;
4
5
use App\Tournament;
6
7
/**
8
 * Class Job
9
 * @package App\Jobs\Tournament
10
 */
11
abstract class Job extends \App\Jobs\Job
12
{
13
    /**
14
     * @var Tournament
15
     */
16
    protected $tournament;
17
18
    /**
19
     * Job constructor.
20
     * @param Tournament $tournament
21
     */
22
    public function __construct(Tournament $tournament)
23
    {
24
        $this->setTournament($tournament);
25
    }
26
27
    /**
28
     * @param Tournament $tournament
29
     * @return mixed
30
     */
31
    abstract protected function setTournament(Tournament $tournament);
32
}
33