Documentation

Utils
in package

Router utilities class

Table of Contents

convertMethodNameToRoute()  : string
Converting method name to route
getCallableDescription()  : string
Method compiles callable description
prepareRoute()  : string
Method prepares route for the next processing

Methods

convertMethodNameToRoute()

Converting method name to route

public static convertMethodNameToRoute(string $methodName) : string
Parameters
$methodName : string

method name

Return values
string

route

getCallableDescription()

Method compiles callable description

public static getCallableDescription(mixed $processor) : string
Parameters
$processor : mixed
Tags
psalm-suppress

MixedOperand, MixedArrayAccess, MixedArgument, MissingParamType

Return values
string

description

prepareRoute()

Method prepares route for the next processing

public static prepareRoute(array<string|int, string>|string $route) : string
Parameters
$route : array<string|int, string>|string

route

Tags
psalm-suppress

MixedArgumentTypeCoercion, MixedAssignment

Return values
string

trimmed route

Search results

    Яндекс.Метрика