Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UPD] Sets Options-XXXXXX key. #162

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions src/PAMI/Message/Action/DialplanExtensionAddAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?php
/**
* GetConfig action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Marcelo Gornstein <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAMI/
*
* Copyright 2011 Marcelo Gornstein <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
namespace PAMI\Message\Action;

/**
* GetConfig action message.
*
* PHP Version 5
*
* @category Pami
* @package Message
* @subpackage Action
* @author Marcelo Gornstein <[email protected]>
* @license http://marcelog.github.com/PAMI/ Apache License 2.0
* @link http://marcelog.github.com/PAMI/
*/
class DialplanExtensionAddAction extends ActionMessage
{
/**
* Constructor.
*
* @return void
*/
public function __construct()
{
parent::__construct('DialplanExtensionAdd');
}

public function setContext($input)
{
$this->setKey('Context', $input);
}

public function setExtension($input)
{
$this->setKey('Extension', $input);
}

public function setPriority($input)
{
$this->setKey('Priority', $input);
}

public function setApplication($input)
{
$this->setKey('Application', $input);
}

public function setApplicationData($input)
{
$this->setKey('ApplicationData', $input);
}

public function setReplace($input)
{
$this->setKey('Replace', $input);
}

}
Loading