|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00033 class Zend_Server_Reflection_ReturnValue 00034 { 00039 protected $_type; 00040 00045 protected $_description; 00046 00053 public function __construct($type = 'mixed', $description = '') 00054 { 00055 $this->setType($type); 00056 $this->setDescription($description); 00057 } 00058 00064 public function getType() 00065 { 00066 return $this->_type; 00067 } 00068 00075 public function setType($type) 00076 { 00077 if (!is_string($type) && (null !== $type)) { 00078 require_once 'Zend/Server/Reflection/Exception.php'; 00079 throw new Zend_Server_Reflection_Exception('Invalid parameter type'); 00080 } 00081 00082 $this->_type = $type; 00083 } 00084 00090 public function getDescription() 00091 { 00092 return $this->_description; 00093 } 00094 00101 public function setDescription($description) 00102 { 00103 if (!is_string($description) && (null !== $description)) { 00104 require_once 'Zend/Server/Reflection/Exception.php'; 00105 throw new Zend_Server_Reflection_Exception('Invalid parameter description'); 00106 } 00107 00108 $this->_description = $description; 00109 } 00110 }