WebhookDemand
Demand Object for filtering webhooks in the backend module
Table of Contents
Constants
- DEFAULT_ORDER_FIELD = 'name'
- ORDER_ASCENDING = 'asc'
- ORDER_DESCENDING = 'desc'
- ORDER_FIELDS = ['name', 'webhook_type']
Properties
- $limit : int
- $name : string
- $orderDirection : string
- $orderField : string
- $page : int
- $webhookType : string
Methods
- __construct() : mixed
- fromRequest() : self
- getDefaultOrderDirection() : string
- getLimit() : int
- getName() : string
- getOffset() : int
- getOrderDirection() : string
- getOrderField() : string
- getPage() : int
- getParameters() : array<string|int, mixed>
- getReverseOrderDirection() : string
- getWebhookType() : string
- hasConstraints() : bool
- hasName() : bool
- hasWebhookType() : bool
Constants
DEFAULT_ORDER_FIELD
protected
mixed
DEFAULT_ORDER_FIELD
= 'name'
ORDER_ASCENDING
protected
mixed
ORDER_ASCENDING
= 'asc'
ORDER_DESCENDING
protected
mixed
ORDER_DESCENDING
= 'desc'
ORDER_FIELDS
protected
mixed
ORDER_FIELDS
= ['name', 'webhook_type']
Properties
$limit
protected
int
$limit
= 15
$name
protected
string
$name
= ''
$orderDirection
protected
string
$orderDirection
= self::ORDER_ASCENDING
$orderField
protected
string
$orderField
= self::DEFAULT_ORDER_FIELD
$page
protected
int
$page
= 1
$webhookType
protected
string
$webhookType
= ''
Methods
__construct()
public
__construct([int $page = 1 ][, string $orderField = self::DEFAULT_ORDER_FIELD ][, string $orderDirection = self::ORDER_ASCENDING ][, string $name = '' ][, string $webhookType = '' ]) : mixed
Parameters
- $page : int = 1
- $orderField : string = self::DEFAULT_ORDER_FIELD
- $orderDirection : string = self::ORDER_ASCENDING
- $name : string = ''
- $webhookType : string = ''
fromRequest()
public
static fromRequest(ServerRequestInterface $request) : self
Parameters
- $request : ServerRequestInterface
Return values
selfgetDefaultOrderDirection()
public
getDefaultOrderDirection() : string
Return values
stringgetLimit()
public
getLimit() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetOffset()
public
getOffset() : int
Return values
intgetOrderDirection()
public
getOrderDirection() : string
Return values
stringgetOrderField()
public
getOrderField() : string
Return values
stringgetPage()
public
getPage() : int
Return values
intgetParameters()
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getReverseOrderDirection()
public
getReverseOrderDirection() : string
Return values
stringgetWebhookType()
public
getWebhookType() : string
Return values
stringhasConstraints()
public
hasConstraints() : bool
Return values
boolhasName()
public
hasName() : bool
Return values
boolhasWebhookType()
public
hasWebhookType() : bool