Java and C# compatible scalar type hinting

  • You are here: Free PHP » Classes » Java and C# compatible scalar type hinting
Library working concept art
Package:
Java and C# compatible scalar type hinting
Summary:
Check the types of called function arguments
Groups:
Data types, Language, PHP 5
Author:
Artur Graniszewski
Description:
This class can be used to check the types of called function arguments.

It sets up an error handler function that can determine if a function is being called with the wrong types of arguments.

The error handler checks if the type hinting classes for the function being called is string, integer, float, double, boolean and checks if the argument values are of the declared types.


Powered by Gewgley