Nextcloud PHP API (master)

UserRateLimit extends ARateLimit
in package

Attribute for controller methods that want to limit the times a logged-in user can call the endpoint in a given time period.

Tags
since
27.0.0
Attributes
#[Attribute]
\Attribute::TARGET_METHOD

Table of Contents

Properties

$limit  : int
$period  : int

Methods

__construct()  : mixed
getLimit()  : int
getPeriod()  : int

Properties

Methods

__construct()

public __construct(int $limit, int $period) : mixed
Parameters
$limit : int

The maximum number of requests that can be made in the given period in seconds.

$period : int

The time period in seconds.

Tags
since
27.0.0

getLimit()

public getLimit() : int
Tags
since
27.0.0
Return values
int

getPeriod()

public getPeriod() : int
Tags
since
27.0.0
Return values
int

        
On this page

Search results