Hoa central
Static Public Member Functions | List of all members
Hoa\Socket\Transport Class Reference

Static Public Member Functions

static get ()
 
static exists ($transport)
 

Detailed Description

Class .

Basic transports manipulation.

Definition at line 47 of file Transport.php.

Member Function Documentation

static Hoa\Socket\Transport::exists (   $transport)
static

Check if a transport exists.

Parameters
string$transportTransport to check.
Returns
bool

Definition at line 71 of file Transport.php.

72  {
73  return in_array(strtolower($transport), self::get());
74  }

Here is the caller graph for this function:

static Hoa\Socket\Transport::get ( )
static

Get all enable transports.

Returns
array

Definition at line 54 of file Transport.php.

55  {
56  static $_ = null;
57 
58  if (null === $_) {
59  $_ = stream_get_transports();
60  }
61 
62  return $_;
63  }

The documentation for this class was generated from the following file: