PHP Class PAMI\Message\Action\MixMonitorMuteAction

PHP Version 5
Author: Matt Styles ([email protected])
Inheritance: extends PAMI\Message\Action\ActionMessage
Exibir arquivo Open project: marcelog/pami

Public Methods

Method Description
__construct ( string $channel, boolean $state = true, string $direction = 'both' ) Constructor.
setDirection ( string $direction ) : void Sets state key.
setState ( boolean $state ) : void Sets state key.

Method Details

__construct() public method

Constructor.
public __construct ( string $channel, boolean $state = true, string $direction = 'both' )
$channel string Channel on which to act.
$state boolean Turn mute on or off
$direction string Which part of the recording to mute: read, write or both (from channel, to channel or both channels).

setDirection() public method

Sets state key.
public setDirection ( string $direction ) : void
$direction string Which part of the recording to mute: read, write or both (from channel, to channel or both channels).
return void

setState() public method

Sets state key.
public setState ( boolean $state ) : void
$state boolean Mute state
return void