Passed
Push — master ( 5ac3ee...654419 )
by Vladimir
13:40 queued 04:49
created

Strand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 22
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQL\Experimental\Executor;
6
7
use Generator;
8
9
/**
10
 * @internal
11
 */
12
class Strand
13
{
14
    /** @var Generator */
15
    public $current;
16
17
    /** @var Generator[] */
18
    public $stack;
19
20
    /** @var int */
21
    public $depth;
22
23
    /** @var bool|null */
24
    public $success;
25
26
    /** @var mixed */
27
    public $value;
28
29 191
    public function __construct(Generator $coroutine)
30
    {
31 191
        $this->current = $coroutine;
32 191
        $this->stack   = [];
33 191
        $this->depth   = 0;
34 191
    }
35
}
36