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

FailedTracks::pushToTracks()   A

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 2
1
<?php namespace Maqe\Qwatcher\Tracks;
2
3
use Maqe\Qwatcher\Tracks\Enums\StatusType;
4
5
class FailedTracks 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::FAILED);
15
    }
16
}
17