Fruit RouteKit
Route kit of Fruit Framework
Static Public Member Functions
Type Class Reference

Static Public Member Functions

static typeConvert (array $params, array $pRefs)
 

Detailed Description

Definition at line 8 of file Type.php.

Member Function Documentation

static typeConvert ( array  $params,
array  $pRefs 
)
static

Convert type of parameters according to type hinting.

It is recommanded to add type hinting to everything you wrote, including your handlers. But url parameters are strings, so it needs to be converted.

This method can only convert parameters to primitive types, so it's meaningless with php5 and hhvm. We will skip this process if you are not using php7.

Definition at line 19 of file Type.php.


The documentation for this class was generated from the following file: