/zf/library/Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateParticipantRequest.php

http://github.com/eryx/php-framework-benchmark · PHP · 138 lines · 44 code · 10 blank · 84 comment · 1 complexity · 3e46ac41c56f7725bda05e671e1e5a3b MD5 · raw file

  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Service
  17. * @subpackage DeveloperGarden
  18. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id: UpdateParticipantRequest.php 23775 2011-03-01 17:25:24Z ralph $
  21. */
  22. /**
  23. * @see Zend_Service_DeveloperGarden_Request_RequestAbstract
  24. */
  25. require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.php';
  26. /**
  27. * @category Zend
  28. * @package Zend_Service
  29. * @subpackage DeveloperGarden
  30. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @author Marco Kaiser
  32. * @license http://framework.zend.com/license/new-bsd New BSD License
  33. */
  34. class Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
  35. extends Zend_Service_DeveloperGarden_Request_RequestAbstract
  36. {
  37. /**
  38. * the conference id
  39. *
  40. * @var string
  41. */
  42. public $conferenceId = null;
  43. /**
  44. * the participant id
  45. *
  46. * @var string
  47. */
  48. public $participantId = null;
  49. /**
  50. * conference participant
  51. *
  52. * @var Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail
  53. */
  54. public $participant = null;
  55. /**
  56. * possible action
  57. *
  58. * @var integer
  59. */
  60. public $action = null;
  61. /**
  62. * constructor
  63. *
  64. * @param integer $environment
  65. * @param string $conferenceId
  66. * @param string $participantId
  67. * @param integer $action
  68. * @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
  69. */
  70. public function __construct($environment, $conferenceId, $participantId,
  71. $action = null,
  72. Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant = null
  73. ) {
  74. parent::__construct($environment);
  75. $this->setConferenceId($conferenceId)
  76. ->setParticipantId($participantId)
  77. ->setAction($action)
  78. ->setParticipant($participant);
  79. }
  80. /**
  81. * set the conference id
  82. *
  83. * @param string $conferenceId
  84. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
  85. */
  86. public function setConferenceId($conferenceId)
  87. {
  88. $this->conferenceId = $conferenceId;
  89. return $this;
  90. }
  91. /**
  92. * set the participant id
  93. *
  94. * @param string $participantId
  95. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
  96. */
  97. public function setParticipantId($participantId)
  98. {
  99. $this->participantId = $participantId;
  100. return $this;
  101. }
  102. /**
  103. * sets new action
  104. *
  105. * @param integer $action
  106. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
  107. */
  108. public function setAction($action = null)
  109. {
  110. if ($action !== null) {
  111. Zend_Service_DeveloperGarden_ConferenceCall::checkParticipantAction($action);
  112. }
  113. $this->action = $action;
  114. return $this;
  115. }
  116. /**
  117. * sets new participant
  118. *
  119. * @param Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant
  120. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_UpdateParticipantRequest
  121. */
  122. public function setParticipant(
  123. Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail $participant = null
  124. ) {
  125. $this->participant = $participant;
  126. return $this;
  127. }
  128. }