1 | <?php |
||
16 | class Response |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * Currently one of "redirect" or a valid MIME type. |
||
21 | * @var string |
||
22 | */ |
||
23 | public $type; |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | public $content; |
||
28 | |||
29 | /** |
||
30 | * @param $type |
||
31 | * @param $content |
||
32 | * @param null $responseCode |
||
33 | */ |
||
34 | function __construct( $type, $content, $responseCode = null ) |
||
49 | } |
||
50 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.