src/APIResponse.php
public function respondWithData(array $data)
    {

        $responseData = $this->getResponseStructure(true, $data, '');
        $response = new JsonResponse($responseData, $this->getStatusCode(), $this->getHeaders());
        return $response;
    }
public function respondWithData(array $data)
    {

        $responseData = $this->getResponseStructure(true, $data, '');
        $response = new JsonResponse($responseData, $this->getStatusCode(), $this->getHeaders());
        return $response;
    }
public function respondWithData ( array $ data ) { $ responseData = $ this -> getResponseStructure ( true , $ data , '' ) ; $ response = new JsonResponse ( $ responseData , $ this -> getStatusCode ( ) , $ this -> getHeaders ( ) ) ; return $ response ; }
Responds with data

@param array $data

@return JsonResponse
Responds with data