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\Client;
16
17/**
18 * Mail client interface
19 *
20 * @category   Pop
21 * @package    Pop\Mail
22 * @author     Nick Sagona, III <dev@noladev.com>
23 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
24 * @license    https://www.popphp.org/license     New BSD License
25 * @version    5.0.0
26 */
27interface MailClientInterface
28{
29
30    /**
31     * Get mail client host
32     *
33     * @return ?string
34     */
35    public function getHost(): ?string;
36
37    /**
38     * Get mail client port
39     *
40     * @return int|string|null
41     */
42    public function getPort(): int|string|null;
43
44    /**
45     * Get mail client service
46     *
47     * @return ?string
48     */
49    public function getService(): ?string;
50
51    /**
52     * Get username
53     *
54     * @return string
55     */
56    public function getUsername(): string;
57
58    /**
59     * Get password
60     *
61     * @return string
62     */
63    public function getPassword(): string;
64
65    /**
66     * Get folder
67     *
68     * @return string
69     */
70    public function getFolder(): string;
71
72    /**
73     * Set mail client host
74     *
75     * @param  string $host
76     * @return MailClientInterface
77     */
78    public function setHost(string $host): MailClientInterface;
79
80    /**
81     * Set mail client port
82     *
83     * @param  int|string $port
84     * @return MailClientInterface
85     */
86    public function setPort(int|string $port): MailClientInterface;
87
88    /**
89     * Set mail client service
90     *
91     * @param  string $service
92     * @return MailClientInterface
93     */
94    public function setService(string $service): MailClientInterface;
95
96    /**
97     * Set username
98     *
99     * @param  string $username
100     * @return MailClientInterface
101     */
102    public function setUsername(string $username): MailClientInterface;
103
104    /**
105     * Set password
106     *
107     * @param  string $password
108     * @return MailClientInterface
109     */
110    public function setPassword(string $password): MailClientInterface;
111
112    /**
113     * Set folder
114     *
115     * @param  string $folder
116     * @return MailClientInterface
117     */
118    public function setFolder(string $folder): MailClientInterface;
119
120}