PHP 트레잇 Api\StarterKit\Utils\ApiResponse

상속: use trait Dingo\Api\Routing\Helpers
파일 보기 프로젝트 열기: qijitech/api-starter-kit

보호된 프로퍼티들

프로퍼티 타입 설명
$statusCode

공개 메소드들

메소드 설명
getStatusCode ( ) : integer
respondBadMethod ( string $message = 'Bad Method!' ) : mixed
respondCreated ( $location = null ) : mixed
respondForbidden ( string $message = 'Forbidden!' ) : mixed
respondInternal ( string $message = 'Internal Server Error!' ) : mixed
respondMethodNotAllowed ( string $message = 'Method Not Allowed!' ) : mixed
respondNotFound ( string $message = 'Not Found!' ) : mixed
respondSuccess ( $message = 'Success' ) : mixed
respondUnprocessable ( $message ) : mixed
respondWithCollection ( Collection $data, League\Fractal\TransformerAbstract $transformer = null ) : mixed
respondWithItem ( $data, League\Fractal\TransformerAbstract $transformer = null ) : mixed
respondWithPagination ( Illuminate\Pagination\AbstractPaginator $paginator, League\Fractal\TransformerAbstract $transformer = null ) : mixed
setStatusCode ( integer $statusCode )

비공개 메소드들

메소드 설명
getTransformer ( League\Fractal\TransformerAbstract $transformer = null ) : SimpleTransformer | League\Fractal\TransformerAbstract get transformer

메소드 상세

getStatusCode() 공개 메소드

public getStatusCode ( ) : integer
리턴 integer

respondBadMethod() 공개 메소드

public respondBadMethod ( string $message = 'Bad Method!' ) : mixed
$message string
리턴 mixed

respondCreated() 공개 메소드

public respondCreated ( $location = null ) : mixed
$location
리턴 mixed

respondForbidden() 공개 메소드

public respondForbidden ( string $message = 'Forbidden!' ) : mixed
$message string
리턴 mixed

respondInternal() 공개 메소드

public respondInternal ( string $message = 'Internal Server Error!' ) : mixed
$message string
리턴 mixed

respondMethodNotAllowed() 공개 메소드

public respondMethodNotAllowed ( string $message = 'Method Not Allowed!' ) : mixed
$message string
리턴 mixed

respondNotFound() 공개 메소드

public respondNotFound ( string $message = 'Not Found!' ) : mixed
$message string
리턴 mixed

respondSuccess() 공개 메소드

public respondSuccess ( $message = 'Success' ) : mixed
$message
리턴 mixed

respondUnprocessable() 공개 메소드

public respondUnprocessable ( $message ) : mixed
$message
리턴 mixed

respondWithCollection() 공개 메소드

public respondWithCollection ( Collection $data, League\Fractal\TransformerAbstract $transformer = null ) : mixed
$data Illuminate\Support\Collection
$transformer League\Fractal\TransformerAbstract
리턴 mixed

respondWithItem() 공개 메소드

public respondWithItem ( $data, League\Fractal\TransformerAbstract $transformer = null ) : mixed
$data
$transformer League\Fractal\TransformerAbstract
리턴 mixed

respondWithPagination() 공개 메소드

public respondWithPagination ( Illuminate\Pagination\AbstractPaginator $paginator, League\Fractal\TransformerAbstract $transformer = null ) : mixed
$paginator Illuminate\Pagination\AbstractPaginator
$transformer League\Fractal\TransformerAbstract
리턴 mixed

setStatusCode() 공개 메소드

public setStatusCode ( integer $statusCode )
$statusCode integer

프로퍼티 상세

$statusCode 보호되어 있는 프로퍼티

protected $statusCode