Job   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
setTournament() 0 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