PAMI\Message\Action\HangupAction::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $channel, integer $cause = null ) : void
$channel string Channel to hangup.
$cause integer Hangup cause.
return void
    public function __construct($channel, $cause = null)
    {
        parent::__construct('Hangup');
        $this->setKey('Channel', $channel);
        if (null !== $cause) {
            $this->setKey('Cause', $cause);
        }
    }
HangupAction