A class for parsing device / host / platform details

copyright | Copyright (c) 2012 - 2013, Open Source Solutions Limited, Dublin, Ireland
author | Barry O'Donovan

### Methods

## The constructor.

    __construct(\OSS_SNMP\SNMP $snmpHost) : \OSS_SNMP\Platform

### Parameters

#### $snmpHost

`\OSS_SNMP\SNMP`

The SNMP Host object

### Returns

`\OSS_SNMP\Platform`An instance of $this (for fluent interfaces)

## Get model

    getModel() : string

### Returns

`string`

## Get operating system

    getOs() : string

### Returns

`string`

## Get OS date

    getOsDate()

return \DateTime

## Get OS version

    getOsVersion() : string

### Returns

`string`

## Get the SNMPHost object

    getSNMPHost() : \OSS_SNMP\SNMP

### Returns

`\OSS_SNMP\SNMP`The SNMP object

## Get the serial number

    getSerialNumber()

return string

## Get vendor

    getVendor() : string

### Returns

`string`

## parse()

    parse()

## Set model

    setModel(string $s) : \OSS_SNMP\Platform

### Parameters

#### $s

`string`

### Returns

`\OSS_SNMP\Platform`For fluent interfaces

## Set operating system

    setOs(string $s) : \OSS_SNMP\Platform

### Parameters

#### $s

`string`

### Returns

`\OSS_SNMP\Platform`For fluent interfaces

## Set OS date

    setOsDate(string $s) : \OSS_SNMP\Platform

### Parameters

#### $s

`string`

### Returns

`\OSS_SNMP\Platform`For fluent interfaces

## Set OS version

    setOsVersion(string $s) : \OSS_SNMP\Platform

### Parameters

#### $s

`string`

### Returns

`\OSS_SNMP\Platform`For fluent interfaces

## Set the SNMPT Host

    setSNMPHost(\OSS_SNMP\SNMP $s) : \OSS_SNMP\Platform

### Parameters

#### $s

`\OSS_SNMP\SNMP`

The SNMP Host object

### Returns

`\OSS_SNMP\Platform`For fluent interfaces

## Set the serial number

    setSerialNumber(string $s) : \OSS_SNMP\Platform

### Parameters

#### $s

`string`

### Returns

`\OSS_SNMP\Platform`For fluent interfaces

## Set vendor

    setVendor(string $s) : \OSS_SNMP\Platform

### Parameters

#### $s

`string`

### Returns

`\OSS_SNMP\Platform`For fluent interfaces

### Properties

## The platform model

    $_model : string

### Default

`'Unknown'`

## The platform operating system

    $_os : string

### Default

`'Unknown'`

## The platform operating system (compile) date

    $_osdate : string

### Default

`null`

## The platform operating system version

    $_osver : string

### Default

`'Unknown'`

## The platform serial number

    $_serial : string

### Default

`'(not implemented)'`

## The \OSS_SNMP\SNMP object

    $_snmpHost : string

### Default

## The platform vendor

    $_vendor : string

### Default

`'Unknown'`