Storm\Core\Utilities::GetTypeOrClass PHP Method

GetTypeOrClass() public static method

public static GetTypeOrClass ( $Value )
    public static function GetTypeOrClass($Value)
    {
        return is_object($Value) ? get_class($Value) : gettype($Value);
    }

Usage Example

Example #1
0
 public final function SetPropertyMode($PropertyMode)
 {
     if ($PropertyMode !== self::PropertiesAreGetters && $PropertyMode !== self::PropertiesAreSetters && $PropertyMode !== self::PropertiesAreGettersOrSetters) {
         throw new FunctionException('The supplied property mode is invalid: %s given', \Storm\Core\Utilities::GetTypeOrClass($PropertyMode));
     }
     $this->PropertyMode = $PropertyMode;
 }
All Usage Examples Of Storm\Core\Utilities::GetTypeOrClass