Skip to content

RestResponseInterface

  • Full name: \Zemit\Mvc\Controller\Traits\Interfaces\RestResponseInterface

Methods

setRestErrorResponse

public setRestErrorResponse(int $code = 400, string $status = 'Bad Request', mixed $response = null): \Phalcon\Http\ResponseInterface

Parameters:

Parameter Type Description
$code int
$status string
$response mixed

setRestResponse

public setRestResponse(mixed $response = null, int $code = null, string $status = null, int $jsonOptions, int $depth = 512): \Phalcon\Http\ResponseInterface

Parameters:

Parameter Type Description
$response mixed
$code int
$status string
$jsonOptions int
$depth int