Parser/ParserAbstract.php
public static function setVersionTruncation($type)
    {
        if (in_array($type, array(self::VERSION_TRUNCATION_BUILD,
                                 self::VERSION_TRUNCATION_NONE,
                                 self::VERSION_TRUNCATION_MAJOR,
                                 self::VERSION_TRUNCATION_MINOR,
                                 self::VERSION_TRUNCATION_PATCH))) {
            self::$maxMinorParts = $type;
        }
    }
public static function setVersionTruncation($type)
    {
        if (in_array($type, array(self::VERSION_TRUNCATION_BUILD,
                                 self::VERSION_TRUNCATION_NONE,
                                 self::VERSION_TRUNCATION_MAJOR,
                                 self::VERSION_TRUNCATION_MINOR,
                                 self::VERSION_TRUNCATION_PATCH))) {
            self::$maxMinorParts = $type;
        }
    }
public static function setVersionTruncation ( $ type ) { if ( in_array ( $ type , array ( self :: VERSION_TRUNCATION_BUILD , self :: VERSION_TRUNCATION_NONE , self :: VERSION_TRUNCATION_MAJOR , self :: VERSION_TRUNCATION_MINOR , self :: VERSION_TRUNCATION_PATCH ) ) ) { self :: $ maxMinorParts = $ type ; } }
Set how DeviceDetector should return versions
@param int|null $type Any of the VERSION_TRUNCATION_* constants
Set how DeviceDetector should return versions