PHP 8.2.31
Preview: SDLValidationContext.php Size: 954 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/lib/packages/GraphQL/Validator/SDLValidationContext.php

<?php declare(strict_types=1);

namespace Automattic\WooCommerce\Vendor\GraphQL\Validator;

use Automattic\WooCommerce\Vendor\GraphQL\Error\Error;
use Automattic\WooCommerce\Vendor\GraphQL\Language\AST\DocumentNode;
use Automattic\WooCommerce\Vendor\GraphQL\Type\Schema;

class SDLValidationContext implements ValidationContext
{
    protected DocumentNode $ast;

    protected ?Schema $schema;

    /** @var list<Error> */
    protected array $errors = [];

    public function __construct(DocumentNode $ast, ?Schema $schema)
    {
        $this->ast = $ast;
        $this->schema = $schema;
    }

    public function reportError(Error $error): void
    {
        $this->errors[] = $error;
    }

    public function getErrors(): array
    {
        return $this->errors;
    }

    public function getDocument(): DocumentNode
    {
        return $this->ast;
    }

    public function getSchema(): ?Schema
    {
        return $this->schema;
    }
}

Directory Contents

Dirs: 1 × Files: 4

Name Size Perms Modified Actions
Rules DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
13.18 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
8.94 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
954 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
522 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).