private function getInputs()
    {
        // If defined, return the inputs array
        if ($this->inputs) {
            return $this->inputs;
        }

        // Check for JSON data
        if (isset($_SERVER['CONTENT_TYPE']) && strpos($_SERVER['CONTENT_TYPE'], 'application/json') === 0) {
            $input = file_get_contents('php://input');
            $decoded = json_decode($input, true);
            if ($decoded) {
                $this->inputs = $decoded;
                return $this->inputs;
            }
        }

        // Check by request method
        switch ($_SERVER['REQUEST_METHOD']) {

            // Get PUT inputs
            case 'PUT':
                parse_str(file_get_contents("php://input"), $this->inputs);
                break;

            // Get POST inputs
            case 'POST':
                $this->inputs = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);
                break;

            // Get GET inputs
            default:
                $this->inputs = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);
                break;
        }

        // Return array of inputs
        return $this->inputs ? : [];
    }