wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Application/Validation/ValidationError.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare( strict_types=1 );

namespace Wikibase\Repo\RestApi\Application\Validation;

/**
 * @license GPL-2.0-or-later
 */
class ValidationError {
    private string $code;
    private array $context;

    public function __construct( string $code, array $context = [] ) {
        $this->code = $code;
        $this->context = $context;
    }

    public function getCode(): string {
        return $this->code;
    }

    public function getContext(): array {
        return $this->context;
    }

}