PHP Class WhichBrowser\Model\Os

Inheritance: extends WhichBrowser\Model\Primitive\NameVersion
Show file Open project: whichbrowser/parser Class Usage Examples

Public Properties

Property Type Description
$edition string
$family WhichBrowser\Model\Family To which family does this operating system belong
$hidden boolean

Public Methods

Method Description
getFamily ( ) : string Return the name of the operating system family
isFamily ( string $name ) : boolean Is the operating from the specified family
reset ( array | null $properties = null ) Set the properties to the default values
toArray ( ) : array Get an array of all defined properties
toString ( ) : string Get the name and version in a human readable format

Method Details

getFamily() public method

Return the name of the operating system family
public getFamily ( ) : string
return string

isFamily() public method

Is the operating from the specified family
public isFamily ( string $name ) : boolean
$name string The name of the family
return boolean

reset() public method

Set the properties to the default values
public reset ( array | null $properties = null )
$properties array | null An optional array of properties to set after setting it to the default values

toArray() public method

Get an array of all defined properties
public toArray ( ) : array
return array

toString() public method

Get the name and version in a human readable format
public toString ( ) : string
return string

Property Details

$edition public property

public string $edition
return string

$family public property

To which family does this operating system belong
public Family,WhichBrowser\Model $family
return WhichBrowser\Model\Family

$hidden public property

public bool $hidden
return boolean