Skip to content

Commit

Permalink
Add getAllData method
Browse files Browse the repository at this point in the history
  • Loading branch information
gigili committed May 4, 2024
1 parent 20f1c17 commit 545146c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ public function get(string $key = '') : mixed {
return $this->data[$key] ?? NULL;
}

/**
* Returns all body request arguments
*
* @return mixed All body arguments
*/
public function getAllData(): mixed {
return $this->data;
}

/**
* Returns list of all the header items or a value of a specified key.
* It will return NULL if the specified key can't be found.
Expand Down Expand Up @@ -227,4 +236,4 @@ private function parse_patch_and_put_request_data() : array {
}
return $data ?? [];
}
}
}

0 comments on commit 545146c

Please sign in to comment.