Core Theme Components

HttpMethods

Provides annotations for organizing controller methods by specific HTTP methods.

Controller methods can specify HTTP methods such as GET, POST, etc or define sets of methods such as SAFE, IDEMPOTENT or CACHEABLE.

Tags
Annotation
NamedArgumentConstructor

Table of Contents

$methods  : array<string|int, mixed>
__construct()  : mixed
getMethods()  : array<string|int, mixed>
Get the value of methods
setMethods()  : HttpMethods
Set the value of methods
validateMethods()  : bool

Properties

$methods

public array<string|int, mixed> $methods = []

Methods

__construct()

public __construct([array<string|int, mixed> $methods = [] ]) : mixed
Parameters
$methods : array<string|int, mixed> = []
Return values
mixed

getMethods()

Get the value of methods

public getMethods() : array<string|int, mixed>
Return values
array<string|int, mixed>

validateMethods()

public validateMethods(Request $request) : bool
Parameters
$request : Request
Return values
bool

Search results