apimatic/core-interfaces-php

View on GitHub
src/Core/Authentication/AuthInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace CoreInterfaces\Core\Authentication;

use CoreInterfaces\Core\Request\RequestSetterInterface;
use CoreInterfaces\Core\Request\TypeValidatorInterface;
use InvalidArgumentException;

interface AuthInterface
{
    /**
     * @throws InvalidArgumentException
     */
    public function validate(TypeValidatorInterface $validator): void;
    public function apply(RequestSetterInterface $request): void;
}