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

AbstractQueryVisitor::visit()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 1
ccs 0
cts 0
cp 0
nc 1
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
}