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

QueueCall::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
crap 2
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