PHP Class System\Response\Status

Exibir arquivo Open project: rwarasaurus/nano Class Usage Examples

Public Properties

Property Type Description
$messages array Array or possible server status responses
$protocol string The server protocol
$status integer The status code

Public Methods

Method Description
__construct ( $status = 200 ) Create an instance or the Status class
header ( ) Send the status header

Method Details

__construct() public method

Create an instance or the Status class
public __construct ( $status = 200 )

header() public method

Send the status header
public header ( )

Property Details

$messages public_oe property

Array or possible server status responses
public array $messages
return array

$protocol public_oe property

The server protocol
public string $protocol
return string

$status public_oe property

The status code
public int $status
return integer