Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2declare(strict_types=1);
3/**
4 * Pop PHP Framework (https://www.popphp.org/)
5 *
6 * @link       https://github.com/popphp/popphp-framework
7 * @author     Nick Sagona, III <dev@noladev.com>
8 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
9 * @license    https://www.popphp.org/license     New BSD License
10 */
11
12/**
13 * @namespace
14 */
15namespace Pop\Mail\Api;
16
17use Aws\Ses\SesClient;
18use Pop\Http;
19
20/**
21 * Http base interface
22 *
23 * @category   Pop
24 * @package    Pop\Mail
25 * @author     Nick Sagona, III <dev@noladev.com>
26 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
27 * @license    https://www.popphp.org/license     New BSD License
28 * @version    5.0.0
29 */
30interface HttpInterface
31{
32
33    /**
34     * Create client
35     *
36     * @param  array|string $options
37     * @return HttpInterface
38     */
39    public function createClient(array|string $options): HttpInterface;
40
41    /**
42     * Set client
43     *
44     * @param  mixed $client
45     * @return HttpInterface
46     */
47    public function setClient(mixed $client): HttpInterface;
48
49    /**
50     * Get client
51     *
52     * @return mixed
53     */
54    public function getClient(): mixed;
55
56    /**
57     * Has client
58     *
59     * @return bool
60     */
61    public function hasClient(): bool;
62
63    /**
64     * Parse options
65     *
66     * @param  array|string $options
67     * @throws Exception
68     * @return array
69     */
70    public function parseOptions(array|string $options): array;
71
72}