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

AbstractQueryVisitor::getMemo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
ccs 0
cts 2
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Youshido\GraphQL\Execution\Visitor;
4
5
6
use Youshido\GraphQL\Config\Field\FieldConfig;
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
  /**
23
   * @param array       $args
24
   * @param FieldConfig $fieldConfig
25
   * @param int         $childScore
26
   *
27
   * @return mixed
28
   */
29
  abstract public function visit(array $args, FieldConfig $fieldConfig, $childScore = 0);
30
}