CreateConferenceRequest.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  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-2015 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_CreateConferenceRequest
  35. extends Zend_Service_DeveloperGarden_Request_RequestAbstract
  36. {
  37. /**
  38. * account to be used for this conference
  39. *
  40. * @var integer
  41. */
  42. public $account = null;
  43. /**
  44. * unique owner id
  45. *
  46. * @var string
  47. */
  48. public $ownerId = null;
  49. /**
  50. * object with details for this conference
  51. *
  52. * @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
  53. */
  54. public $detail = null;
  55. /**
  56. * object with schedule for this conference
  57. *
  58. * @var Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule
  59. */
  60. public $schedule = null;
  61. /**
  62. * constructor
  63. *
  64. * @param integer $environment
  65. * @param string $ownerId
  66. * @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails
  67. * @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule
  68. * @param integer $account
  69. */
  70. public function __construct($environment, $ownerId,
  71. Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $conferenceDetails,
  72. Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $conferenceSchedule = null,
  73. $account = null
  74. ) {
  75. parent::__construct($environment);
  76. $this->setOwnerId($ownerId)
  77. ->setDetail($conferenceDetails)
  78. ->setSchedule($conferenceSchedule)
  79. ->setAccount($account);
  80. }
  81. /**
  82. * sets $schedule
  83. *
  84. * @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $schedule
  85. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
  86. */
  87. public function setSchedule(
  88. Zend_Service_DeveloperGarden_ConferenceCall_ConferenceSchedule $schedule = null
  89. ) {
  90. $this->schedule = $schedule;
  91. return $this;
  92. }
  93. /**
  94. * sets $detail
  95. *
  96. * @param Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail
  97. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
  98. */
  99. public function setDetail(Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail $detail)
  100. {
  101. $this->detail = $detail;
  102. return $this;
  103. }
  104. /**
  105. * sets $ownerId
  106. *
  107. * @param string $ownerId
  108. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
  109. */
  110. public function setOwnerId($ownerId)
  111. {
  112. $this->ownerId = $ownerId;
  113. return $this;
  114. }
  115. /**
  116. * sets $account
  117. *
  118. * @param int $account
  119. * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
  120. */
  121. public function setAccount($account = null)
  122. {
  123. $this->account = $account;
  124. return $this;
  125. }
  126. }