Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Prototype.php
Go to the documentation of this file.
1 <?php
24 #require_once 'Zend/Server/Reflection/ReturnValue.php';
25 
29 #require_once 'Zend/Server/Reflection/Parameter.php';
30 
44 {
52  public function __construct(Zend_Server_Reflection_ReturnValue $return, $params = null)
53  {
54  $this->_return = $return;
55 
56  if (!is_array($params) && (null !== $params)) {
57  #require_once 'Zend/Server/Reflection/Exception.php';
58  throw new Zend_Server_Reflection_Exception('Invalid parameters');
59  }
60 
61  if (is_array($params)) {
62  foreach ($params as $param) {
63  if (!$param instanceof Zend_Server_Reflection_Parameter) {
64  #require_once 'Zend/Server/Reflection/Exception.php';
65  throw new Zend_Server_Reflection_Exception('One or more params are invalid');
66  }
67  }
68  }
69 
70  $this->_params = $params;
71  }
72 
78  public function getReturnType()
79  {
80  return $this->_return->getType();
81  }
82 
89  public function getReturnValue()
90  {
91  return $this->_return;
92  }
93 
99  public function getParameters()
100  {
101  return $this->_params;
102  }
103 }
__construct(Zend_Server_Reflection_ReturnValue $return, $params=null)
Definition: Prototype.php:52
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18