public static function getBody() {
        static $body;

        if (!is_null($body)) {
            return $body;
        }

        $method = self::getMethod();

        if ($method == 'POST' || $method == 'PUT' || $method == 'PATCH') {
            $body = file_get_contents('php://input');
        }

        return $body;
    }
public static function getBody() {
        static $body;

        if (!is_null($body)) {
            return $body;
        }

        $method = self::getMethod();

        if ($method == 'POST' || $method == 'PUT' || $method == 'PATCH') {
            $body = file_get_contents('php://input');
        }

        return $body;
    }
public static function getBody ( ) { static $ body ; if ( ! is_null ( $ body ) ) { return $ body ; } $ method = self :: getMethod ( ) ; if ( $ method == 'POST' || $ method == 'PUT' || $ method == 'PATCH' ) { $ body = file_get_contents ( 'php://input' ) ; } return $ body ; }
Gets the body of the request.

@return string Raw HTTP request body
Gets the body of the request .