src/models/Property.php
public static function validationCastFunction($type)
    {
        switch ($type) {
            case Property::DATA_TYPE_FLOAT:
                return 'floatval';
                break;

            case Property::DATA_TYPE_BOOLEAN:
                return 'boolval';
                break;

            case Property::DATA_TYPE_INTEGER:
                return 'intval';
                break;

            case Property::DATA_TYPE_STRING:
            case Property::DATA_TYPE_TEXT:
            case self::DATA_TYPE_INVARIANT_STRING:
                return 'strval';
                break;

            default:
                return null;
        }
    }
public static function validationCastFunction($type)
    {
        switch ($type) {
            case Property::DATA_TYPE_FLOAT:
                return 'floatval';
                break;

            case Property::DATA_TYPE_BOOLEAN:
                return 'boolval';
                break;

            case Property::DATA_TYPE_INTEGER:
                return 'intval';
                break;

            case Property::DATA_TYPE_STRING:
            case Property::DATA_TYPE_TEXT:
            case self::DATA_TYPE_INVARIANT_STRING:
                return 'strval';
                break;

            default:
                return null;
        }
    }
public static function validationCastFunction ( $ type ) { switch ( $ type ) { case Property :: DATA_TYPE_FLOAT : return 'floatval' ; break ; case Property :: DATA_TYPE_BOOLEAN : return 'boolval' ; break ; case Property :: DATA_TYPE_INTEGER : return 'intval' ; break ; case Property :: DATA_TYPE_STRING : case Property :: DATA_TYPE_TEXT : case self :: DATA_TYPE_INVARIANT_STRING : return 'strval' ; break ; default : return null ; } }
Returns name of function for filtering, data casting
@param $type
@return null|string
Returns name of function for filtering data casting