PHP Class Youshido\GraphQL\Execution\Visitor\MaxComplexityQueryVisitor

Inheritance: extends AbstractQueryVisitor
Show file Open project: youshido/graphql Class Usage Examples

Public Properties

Property Type Description
$maxScore max score allowed before throwing an exception (causing processing to stop)

Protected Properties

Property Type Description
$defaultScore default score for nodes without explicit cost functions

Public Methods

Method Description
__construct ( integer $max ) MaxComplexityQueryVisitor constructor.
visit ( array $args, FieldConfig $fieldConfig, $childScore )

Method Details

__construct() public method

MaxComplexityQueryVisitor constructor.
public __construct ( integer $max )
$max integer max allowed complexity score

visit() public method

public visit ( array $args, FieldConfig $fieldConfig, $childScore )
$args array
$fieldConfig Youshido\GraphQL\Config\Field\FieldConfig

Property Details

$defaultScore protected property

default score for nodes without explicit cost functions
protected $defaultScore

$maxScore public property

max score allowed before throwing an exception (causing processing to stop)
public $maxScore