private function getParsedBody(ServerRequestInterface $request): array
    {
        $parsedBody = $request->getParsedBody();

        if (\is_object($parsedBody)) {
            return (array) $parsedBody;
        }

        if ($parsedBody === null) {
            return [];
        }

        return $parsedBody;
    }
private function getParsedBody(ServerRequestInterface $request): array
    {
        $parsedBody = $request->getParsedBody();

        if (\is_object($parsedBody)) {
            return (array) $parsedBody;
        }

        if ($parsedBody === null) {
            return [];
        }

        return $parsedBody;
    }
private function getParsedBody ( ServerRequestInterface $ request ) : array { $ parsedBody = $ request -> getParsedBody ( ) ; if ( \ is_object ( $ parsedBody ) ) { return ( array ) $ parsedBody ; } if ( $ parsedBody === null ) { return [ ] ; } return $ parsedBody ; }
Post Parameters from parsed body.

@param \Psr\Http\Message\ServerRequestInterface $request

@return array
Post Parameters from parsed body .