Completed
Pull Request — master (#21)
by
unknown
04:20
created

SucceedTracks   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A pushToTracks() 0 4 1
1
<?php namespace Maqe\Qwatcher\Tracks;
2
3
use Maqe\Qwatcher\Tracks\Enums\StatusType;
4
5
class SucceedTracks extends TracksAbstract
6
{
7
    public function __construct($id, $job = null)
8
    {
9
        return $this->pushToTracks($id, $job);
0 ignored issues
show
Bug introduced by
Constructors do not have meaningful return values, anything that is returned from here is discarded. Are you sure this is correct?
Loading history...
10
    }
11
12
    public function pushToTracks($id, $job = null)
13
    {
14
        return $this->update($id, $job, StatusType::SUCCEED);
15
    }
16
}
17