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
2
3declare(strict_types=1);
4
5namespace PeServer\Core\Http;
6
7/**
8 * 応答本文出力機。
9 */
10interface ICallbackContent
11{
12    #region variable
13
14    public const UNKNOWN = -1;
15
16    #endregion
17
18    #region function
19
20    /**
21     * 出力処理。
22     *
23     * 自前で `echo` とかいい感じに。
24     *
25     * @return void
26     */
27    public function output(): void;
28
29    /**
30     * 出力長。
31     *
32     * @return int 0以上の場合は決定された出力byte数。不明な場合は `UNKNOWN`。
33     * @phpstan-return non-negative-int|self::UNKNOWN
34     * @see ICallbackContent::UNKNOWN
35     */
36    public function getLength(): int;
37
38    #endregion
39}