PHP Class Indatus\Ranger\ApiDatabase\ResponseHandler

ファイルを表示 Open project: indatus/ranger

Public Methods

Method Description
error ( $error_message = 'this entity does not exist', $status_code = 404 )
success ( array $data, $status_code = 200 )

Method Details

error() public method

public error ( $error_message = 'this entity does not exist', $status_code = 404 )

success() public method

public success ( array $data, $status_code = 200 )
$data array