1 | <?php |
||
11 | final class AuthPlainCredentialsRequest implements RequestInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $username; |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $password; |
||
21 | /** |
||
22 | * @var Tag |
||
23 | */ |
||
24 | private $tag; |
||
25 | |||
26 | /** |
||
27 | * AuthPlainCredentialsRequest constructor. |
||
28 | * @param Tag $tag |
||
29 | * @param string $username |
||
30 | * @param string $password |
||
31 | */ |
||
32 | public function __construct(Tag $tag,string $username, string $password) |
||
38 | |||
39 | /** |
||
40 | * @return StreamInterface |
||
41 | */ |
||
42 | public function toStream(): StreamInterface |
||
50 | |||
51 | /** |
||
52 | * @return Tag |
||
53 | */ |
||
54 | public function getTag(): Tag |
||
58 | } |