jeyroik/extas-jira-mock

View on GitHub
src/interfaces/jira/IMockServer.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace extas\interfaces\jira;

use extas\interfaces\IItem;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;

/**
 * Interface IMockServer
 *
 * @package extas\interfaces\jira
 * @author jeyroik <jeyroik@gmail.com>
 */
interface IMockServer extends IItem
{
    public const SUBJECT = 'extas.jira.server.mock';

    public const FIELD__HOST = 'host';
    public const FIELD__BASE_PATH = 'base_path';

    /**
     * @return string
     */
    public function getBasePath(): string;

    /**
     * @return string
     */
    public function getHost(): string;

    /**
     * @param RequestInterface $request
     * @param ResponseInterface $response
     * @return ResponseInterface
     */
    public function run(RequestInterface $request, ResponseInterface $response): ResponseInterface;
}