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

GearmanWorker   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A run() 0 3 1
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