Completed
Push — master ( baa78e...0c80ce )
by Kamil
02:38
created

QueueCall   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 29
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Dazzle\Filesystem\Invoker\Queue;
4
5
use Dazzle\Promise\PromiseInterface;
6
7
class QueueCall
8
{
9
    /**
10
     * @var string
11
     */
12
    public $func;
13
14
    /**
15
     * @var array
16
     */
17
    public $args;
18
19
    /**
20
     * @var PromiseInterface
21
     */
22
    public $promise;
23
24
    /**
25
     * @param string $func
26
     * @param array $args
27
     * @param PromiseInterface $promise
28
     */
29
    public function __construct($func, $args = [], PromiseInterface $promise)
30
    {
31
        $this->func = $func;
32
        $this->args = $args;
33
        $this->promise = $promise;
34
    }
35
}
36