Completed
Pull Request — master (#15)
by
unknown
03:27
created

AbstractQueryVisitor::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
ccs 3
cts 3
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Youshido\GraphQL\Execution\Visitor;
4
5
6
use Youshido\GraphQL\Field\AbstractField;
7
8
abstract class AbstractQueryVisitor {
9
10
  protected $initialValue = 0;
11
12
  protected $memo;
13
14 1
  public function __construct() {
15 1
    $this->memo = $this->initialValue;
16 1
  }
17
18
  public function getMemo() {
19
    return $this->memo;
20
  }
21
22
  abstract public function visit(AbstractField $field);
23
}