HasRouteTrait
Table of Contents
Properties
- $flags : int
- Bitmask representing enabled routes
Methods
- describeFlags() : string
- Get a human-readable description of enabled routes
- disableFlags() : static
- Disable specific route flags
- enableFlags() : static
- Enable specific route flags
- hasCount() : bool
- Check if COUNT route is enabled
- hasDelete() : bool
- Check if DELETE route is enabled
- hasDeleteMultiple() : bool
- Check if DELETE_MULTIPLE is enabled
- hasGet() : bool
- Check if GET route is enabled
- hasList() : bool
- Check if LIST route is enabled
- hasPatch() : bool
- Check if PATCH route is enabled
- hasPost() : bool
- Check if POST route is enabled
- hasPut() : bool
- Check if PUT route is enabled
- initializeFlags() : static
- Initialize the internal flags.
Properties
$flags
Bitmask representing enabled routes
public
int
$flags
= \oihana\routes\enums\RouteFlag::DEFAULT
Methods
describeFlags()
Get a human-readable description of enabled routes
public
describeFlags() : string
Return values
string —Description of enabled routes
disableFlags()
Disable specific route flags
public
disableFlags(int $flags) : static
Parameters
- $flags : int
-
Flags to disable
Return values
staticenableFlags()
Enable specific route flags
public
enableFlags(int $flags) : static
Parameters
- $flags : int
-
Flags to enable
Return values
statichasCount()
Check if COUNT route is enabled
public
hasCount() : bool
Return values
boolhasDelete()
Check if DELETE route is enabled
public
hasDelete() : bool
Return values
boolhasDeleteMultiple()
Check if DELETE_MULTIPLE is enabled
public
hasDeleteMultiple() : bool
Return values
boolhasGet()
Check if GET route is enabled
public
hasGet() : bool
Return values
boolhasList()
Check if LIST route is enabled
public
hasList() : bool
Return values
boolhasPatch()
Check if PATCH route is enabled
public
hasPatch() : bool
Return values
boolhasPost()
Check if POST route is enabled
public
hasPost() : bool
Return values
boolhasPut()
Check if PUT route is enabled
public
hasPut() : bool
Return values
boolinitializeFlags()
Initialize the internal flags.
public
initializeFlags([array<string|int, mixed>|int $init = [] ]) : static
Parameters
- $init : array<string|int, mixed>|int = []