public function getData() { $data = file_get_contents('php://input'); $data = json_decode($data, $this->jsonAssoc); return $data; }