Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules
QueryDepth::setMaxQueryDepth
Set max query depth. If equal to 0 no check is done. Must be greater or equal to 0.
Method of the class: QueryDepth{}
No Hooks.
Returns
null. Nothing (null).
Usage
$QueryDepth = new QueryDepth(); $QueryDepth->setMaxQueryDepth( $maxQueryDepth ): void;
- $maxQueryDepth(int) (required)
- .
QueryDepth::setMaxQueryDepth() QueryDepth::setMaxQueryDepth code WC 10.9.1
public function setMaxQueryDepth(int $maxQueryDepth): void
{
$this->checkIfGreaterOrEqualToZero('maxQueryDepth', $maxQueryDepth);
$this->maxQueryDepth = $maxQueryDepth;
}