Completed
Push — master ( 479a33...82b45c )
by Leo
01:42
created

GearmanWorker::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace leocata\m1Bot\Workers;
4
5
use leocata\M1\Api;
6
use leocata\m1Bot\Bot\ExampleBot;
7
8
class GearmanWorker
9
{
10
    private $apiWrapper;
11
    private $worker;
12
13
    public function __construct()
14
    {
15
        $this->apiWrapper = new Api();
16
        $this->worker = new ExampleBot();
17
    }
18
19
    public function run()
20
    {
21
        $this->worker->run();
22
    }
23
}
24