Total Complexity | 6 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php namespace Comodojo\Daemon\Worker; |
||
25 | abstract class AbstractWorker implements WorkerInterface { |
||
26 | |||
27 | use EventsTrait; |
||
28 | use LoggerTrait; |
||
29 | use SignalsTrait; |
||
30 | |||
31 | private $name; |
||
32 | |||
33 | private $id; |
||
34 | |||
35 | public function __construct($name = null) { |
||
40 | |||
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function getName() { |
||
49 | |||
50 | } |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getId() { |
||
58 | |||
59 | } |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function spinup() {} |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function spindown() {} |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | abstract public function loop(); |
||
75 | |||
77 |