PHP Class UserAgentParser\Model\Version

Author: Martin Keckeis ([email protected])
显示文件 Open project: ThaDafinser/UserAgentParser Class Usage Examples

Public Methods

Method Description
getAlias ( ) : string
getComplete ( ) : string
getMajor ( ) : integer
getMinor ( ) : integer
getPatch ( ) : integer
setAlias ( string $alias )
setComplete ( string $complete ) Set from the complete version string.
setMajor ( integer $major )
setMinor ( integer $minor )
setPatch ( integer $patch )
toArray ( ) : array

Private Methods

Method Description
getCompleteParts ( $complete ) : array
hydrateComplete ( ) : string
hydrateFromComplete ( $complete )

Method Details

getAlias() public method

public getAlias ( ) : string
return string

getComplete() public method

public getComplete ( ) : string
return string

getMajor() public method

public getMajor ( ) : integer
return integer

getMinor() public method

public getMinor ( ) : integer
return integer

getPatch() public method

public getPatch ( ) : integer
return integer

setAlias() public method

public setAlias ( string $alias )
$alias string

setComplete() public method

Set from the complete version string.
public setComplete ( string $complete )
$complete string

setMajor() public method

public setMajor ( integer $major )
$major integer

setMinor() public method

public setMinor ( integer $minor )
$minor integer

setPatch() public method

public setPatch ( integer $patch )
$patch integer

toArray() public method

public toArray ( ) : array
return array