public function found(array $data): Response
    {
        $this->response->setBody(json_encode(['data' => $data]));
        return $this->response;
    }
public function found(array $data): Response
    {
        $this->response->setBody(json_encode(['data' => $data]));
        return $this->response;
    }
public function found ( array $ data ) : Response { $ this -> response -> setBody ( json_encode ( [ 'data' => $ data ] ) ) ; return $ this -> response ; }
Respond with data.

@param array $data
@return Response
Respond with data .