src/Tracks/FailedTracks.php 1 location
|
@@ 5-16 (lines=12) @@
|
2 |
|
|
3 |
|
use Maqe\Qwatcher\Tracks\Enums\StatusType; |
4 |
|
|
5 |
|
class FailedTracks extends TracksAbstract implements TracksInterface |
6 |
|
{ |
7 |
|
public function __construct($id, $job = null, array $meta = []) |
8 |
|
{ |
9 |
|
return $this->pushToTracks($id, $job); |
10 |
|
} |
11 |
|
|
12 |
|
public function pushToTracks($id, $job = null, array $meta = []) |
13 |
|
{ |
14 |
|
return $this->update($id, $job, StatusType::FAILED); |
15 |
|
} |
16 |
|
} |
17 |
|
|
src/Tracks/ProcessTracks.php 1 location
|
@@ 5-16 (lines=12) @@
|
2 |
|
|
3 |
|
use Maqe\Qwatcher\Tracks\Enums\StatusType; |
4 |
|
|
5 |
|
class ProcessTracks extends TracksAbstract implements TracksInterface |
6 |
|
{ |
7 |
|
public function __construct($id, $job = null, array $meta = []) |
8 |
|
{ |
9 |
|
return $this->pushToTracks($id, $job); |
10 |
|
} |
11 |
|
|
12 |
|
public function pushToTracks($id, $job = null, array $meta = []) |
13 |
|
{ |
14 |
|
return $this->update($id, $job, StatusType::PROCESS); |
15 |
|
} |
16 |
|
} |
17 |
|
|
src/Tracks/QueueTracks.php 1 location
|
@@ 3-14 (lines=12) @@
|
1 |
|
<?php namespace Maqe\Qwatcher\Tracks; |
2 |
|
|
3 |
|
class QueueTracks extends TracksAbstract implements TracksInterface |
4 |
|
{ |
5 |
|
public function __construct($id, $job = null, array $meta = []) |
6 |
|
{ |
7 |
|
return $this->pushToTracks($id, $job, $meta); |
8 |
|
} |
9 |
|
|
10 |
|
public function pushToTracks($id, $job = null, array $meta = []) |
11 |
|
{ |
12 |
|
return $this->create($id, $job, $meta); |
13 |
|
} |
14 |
|
} |
15 |
|
|
src/Tracks/SucceedTracks.php 1 location
|
@@ 5-16 (lines=12) @@
|
2 |
|
|
3 |
|
use Maqe\Qwatcher\Tracks\Enums\StatusType; |
4 |
|
|
5 |
|
class SucceedTracks extends TracksAbstract implements TracksInterface |
6 |
|
{ |
7 |
|
public function __construct($id, $job = null, array $meta = []) |
8 |
|
{ |
9 |
|
return $this->pushToTracks($id, $job); |
10 |
|
} |
11 |
|
|
12 |
|
public function pushToTracks($id, $job = null, array $meta = []) |
13 |
|
{ |
14 |
|
return $this->update($id, $job, StatusType::SUCCEED); |
15 |
|
} |
16 |
|
} |
17 |
|
|