PHP Class Kraken\Network\Websocket\Driver\Version\VersionManager

Inheritance: implements Kraken\Network\Websocket\Driver\Version\VersionManagerInterface
Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$versionCollection Kraken\Network\Websocket\Driver\Version\VersionInterface[]
$versionHeader string

Public Methods

Method Description
__construct ( )
__destruct ( )
checkVersion ( Kraken\Network\Http\HttpRequestInterface $request )
disableVersion ( Kraken\Network\Websocket\Driver\Version\VersionInterface $version )
enableVersion ( Kraken\Network\Websocket\Driver\Version\VersionInterface $version )
getVersion ( Kraken\Network\Http\HttpRequestInterface $request )
getVersionHeader ( )

Protected Methods

Method Description
updateVersionHeader ( ) Update current supported versions header.

Method Details

__construct() public method

public __construct ( )

__destruct() public method

public __destruct ( )

checkVersion() public method

public checkVersion ( Kraken\Network\Http\HttpRequestInterface $request )
$request Kraken\Network\Http\HttpRequestInterface

disableVersion() public method

public disableVersion ( Kraken\Network\Websocket\Driver\Version\VersionInterface $version )
$version Kraken\Network\Websocket\Driver\Version\VersionInterface

enableVersion() public method

public enableVersion ( Kraken\Network\Websocket\Driver\Version\VersionInterface $version )
$version Kraken\Network\Websocket\Driver\Version\VersionInterface

getVersion() public method

public getVersion ( Kraken\Network\Http\HttpRequestInterface $request )
$request Kraken\Network\Http\HttpRequestInterface

getVersionHeader() public method

public getVersionHeader ( )

updateVersionHeader() protected method

Update current supported versions header.
protected updateVersionHeader ( )

Property Details

$versionCollection protected property

protected VersionInterface[],Kraken\Network\Websocket\Driver\Version $versionCollection
return Kraken\Network\Websocket\Driver\Version\VersionInterface[]

$versionHeader protected property

protected string $versionHeader
return string