3 declare(strict_types=1);
36 $this->parsed_body = $request->getParsedBody();
42 public function get(
string $name)
44 if (!isset($this->parsed_body[
$name])) {
45 throw new LogicException(
"'$name' is not contained in posted data.");
48 return $this->parsed_body[
$name];
57 if (!isset($this->parsed_body[$name])) {
61 return $this->parsed_body[
$name];
66 return array_key_exists(
$name, $this->parsed_body);
__construct(ServerRequestInterface $request)
Implements interaction of input element with post data from psr-7 server request. ...
getOr(string $name, $default)