class Platform

Class Platform.

Traits

StaticClassTrait Disallows class instantiation by throwing an exception within the constructor.

Constants

TYPE_DARWIN

Response for Darwin (OSX) based OS.

TYPE_LINUX

Response string for Linux-based OS.

TYPE_WINDOWS

Response for Windows-based OS.

TYPE_UNKNOWN

Response for unknown OS.

Methods

__construct( mixed $values)

Disallow class instantiation by issuing an exception for classes with only static methods.

static  string
name()

No description

static  bool
is( string $name)

No description

static  bool
isNot( string $name)

No description

static  bool
equal( string $expected, string $name)

No description

Details

in StaticClassTrait at line line 28
final __construct( mixed $values)

Disallow class instantiation by issuing an exception for classes with only static methods.

Parameters

mixed $values Any values that may be passed are ignored.

at line line 55
static string name()

Return Value

string

at line line 65
static bool is( string $name)

Parameters

string $name

Return Value

bool

at line line 75
static bool isNot( string $name)

Parameters

string $name

Return Value

bool

at line line 86
static bool equal( string $expected, string $name)

Parameters

string $expected
string $name

Return Value

bool