PHP Class Youshido\GraphQL\Execution\Visitor\MaxComplexityQueryVisitor

Inheritance: extends AbstractQueryVisitor
Mostrar archivo 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_oe property

default score for nodes without explicit cost functions
protected $defaultScore

$maxScore public_oe property

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