9use Psr\Http\Message\ServerRequestInterface;
26 $this->parsed_body = $request->getParsedBody();
35 if (!isset($this->parsed_body[
$name])) {
36 throw new \LogicException(
"'$name' is not contained in posted data.");
39 return $this->parsed_body[
$name];
48 if (!isset($this->parsed_body[
$name])) {
52 return $this->parsed_body[
$name];
An exception for terminatinating execution or to throw for unit testing.
Implements interaction of input element with post data from psr-7 server request.
getOr($name, $default)
@inheritdocs
__construct(ServerRequestInterface $request)