StreamInterface::isReadable()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Genkgo\Mail;
5
6
interface StreamInterface
7
{
8
    /**
9
     * @return string
10
     */
11
    public function __toString(): string;
12
    
13
    public function close(): void;
14
15
    /**
16
     * @return mixed
17
     */
18
    public function detach();
19
20
    /**
21
     * @return int|null
22
     */
23
    public function getSize() : ?int ;
24
25
    /**
26
     * @return int
27
     * @throws \RuntimeException
28
     */
29
    public function tell(): int;
30
31
    /**
32
     * @return bool
33
     */
34
    public function eof(): bool;
35
36
    /**
37
     * @return bool
38
     */
39
    public function isSeekable(): bool;
40
41
    /**
42
     * @param int $offset
43
     * @param int $whence
44
     * @return int
45
     */
46
    public function seek(int $offset, int $whence = SEEK_SET): int;
47
48
    /**
49
     * @return bool
50
     */
51
    public function rewind(): bool;
52
53
    /**
54
     * @return bool
55
     */
56
    public function isWritable(): bool;
57
58
    /**
59
     * @param string $string
60
     * @return int
61
     */
62
    public function write($string): int;
63
64
    /**
65
     * @return bool
66
     */
67
    public function isReadable(): bool;
68
69
    /**
70
     * @param int $length
71
     * @return string
72
     */
73
    public function read(int $length): string;
74
75
    /**
76
     * @return string
77
     */
78
    public function getContents(): string;
79
80
    /**
81
     * @param array<int, string> $keys
82
     * @return array<string, mixed>
0 ignored issues
show
Documentation introduced by
The doc-type array<string, could not be parsed: Expected ">" at position 5, but found "end of type". (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
83
     */
84
    public function getMetadata(array $keys = []): array;
85
}
86