Passed
Push — master ( 039da4...280ab3 )
by 世昌
01:53
created

HtmlContent::send()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
namespace nebula\application\response\provider\type;
3
4
use nebula\application\response\Response;
5
6
/**
7
 * 响应接口
8
 */
9
class HtmlContent implements TypeContentInterface
10
{
11
    public static function send(Response $response, $content, string $type)
12
    {
13
        $response->setType('html');
14
        $response->send($content);
15
    }
16
}
17