Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Server/Reflection/Prototype.php
Go to the documentation of this file.
00001 <?php
00024 require_once 'Zend/Server/Reflection/ReturnValue.php';
00025 
00029 require_once 'Zend/Server/Reflection/Parameter.php';
00030 
00043 class Zend_Server_Reflection_Prototype
00044 {
00052     public function __construct(Zend_Server_Reflection_ReturnValue $return, $params = null)
00053     {
00054         $this->_return = $return;
00055 
00056         if (!is_array($params) && (null !== $params)) {
00057             require_once 'Zend/Server/Reflection/Exception.php';
00058             throw new Zend_Server_Reflection_Exception('Invalid parameters');
00059         }
00060 
00061         if (is_array($params)) {
00062             foreach ($params as $param) {
00063                 if (!$param instanceof Zend_Server_Reflection_Parameter) {
00064                     require_once 'Zend/Server/Reflection/Exception.php';
00065                     throw new Zend_Server_Reflection_Exception('One or more params are invalid');
00066                 }
00067             }
00068         }
00069 
00070         $this->_params = $params;
00071     }
00072 
00078     public function getReturnType()
00079     {
00080         return $this->_return->getType();
00081     }
00082 
00089     public function getReturnValue()
00090     {
00091         return $this->_return;
00092     }
00093 
00099     public function getParameters()
00100     {
00101         return $this->_params;
00102     }
00103 }
 All Data Structures Namespaces Files Functions Variables Enumerations