Documentation

Device
in package

Table of Contents

Constants

IPAD  = 'iPad'
IPHONE  = 'iPhone'
UNKNOWN  = 'unknown'
WINDOWS_PHONE  = 'Windows Phone'

Properties

$name  : string
$userAgent  : UserAgent

Methods

__construct()  : mixed
getName()  : string
getUserAgent()  : UserAgent
setName()  : $this
setUserAgent()  : $this

Constants

IPHONE

public mixed IPHONE = 'iPhone'

UNKNOWN

public mixed UNKNOWN = 'unknown'

WINDOWS_PHONE

public mixed WINDOWS_PHONE = 'Windows Phone'

Properties

Methods

__construct()

public __construct([null|string|UserAgent $userAgent = null ]) : mixed
Parameters
$userAgent : null|string|UserAgent = null
Tags
throws
InvalidArgumentException

getName()

public getName() : string
Return values
string

setName()

public setName(string $name) : $this
Parameters
$name : string
Return values
$this

        
On this page

Search results