Skip to content

Latest commit

 

History

History
39 lines (16 loc) · 700 Bytes

DieSchittigs-ContaoContentApiBundle-ContentApiResponse.md

File metadata and controls

39 lines (16 loc) · 700 Bytes

DieSchittigs\ContaoContentApiBundle\ContentApiResponse

ContentApiResponse represents all responses from the API.

  • Class name: ContentApiResponse
  • Namespace: DieSchittigs\ContaoContentApiBundle
  • Parent class: Symfony\Component\HttpFoundation\JsonResponse

Methods

__construct

mixed DieSchittigs\ContaoContentApiBundle\ContentApiResponse::__construct(mixed $data, integer $status, array $headers)

constructor.

  • Visibility: public

Arguments

  • $data mixed - <p>any data (object, array, or ContaoJson)</p>
  • $status integer - <p>Status code</p>
  • $headers array - <p>Additional headers</p>