Oihana PHP System

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
static

enableFlags()

Enable specific route flags

public enableFlags(int $flags) : static
Parameters
$flags : int

Flags to enable

Return values
static

hasCount()

Check if COUNT route is enabled

public hasCount() : bool
Return values
bool

hasDelete()

Check if DELETE route is enabled

public hasDelete() : bool
Return values
bool

hasDeleteMultiple()

Check if DELETE_MULTIPLE is enabled

public hasDeleteMultiple() : bool
Return values
bool

hasGet()

Check if GET route is enabled

public hasGet() : bool
Return values
bool

hasList()

Check if LIST route is enabled

public hasList() : bool
Return values
bool

hasPatch()

Check if PATCH route is enabled

public hasPatch() : bool
Return values
bool

hasPost()

Check if POST route is enabled

public hasPost() : bool
Return values
bool

hasPut()

Check if PUT route is enabled

public hasPut() : bool
Return values
bool

initializeFlags()

Initialize the internal flags.

public initializeFlags([array<string|int, mixed>|int $init = [] ]) : static
Parameters
$init : array<string|int, mixed>|int = []
Return values
static

        
On this page

Search results