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

HtmlContent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A send() 0 4 1
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