Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Zend_Server_Reflection_Prototype Class Reference

Public Member Functions

 __construct (Zend_Server_Reflection_ReturnValue $return, $params=null)
 
 getReturnType ()
 
 getReturnValue ()
 
 getParameters ()
 

Detailed Description

Definition at line 43 of file Prototype.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Zend_Server_Reflection_ReturnValue  $return,
  $params = null 
)

Constructor

Parameters
Zend_Server_Reflection_ReturnValue$return
array$params
Returns
void

Definition at line 52 of file Prototype.php.

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  }
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18

Member Function Documentation

◆ getParameters()

getParameters ( )

Retrieve method parameters

Returns
array Array of Zend_Server_Reflection_Parameters

Definition at line 99 of file Prototype.php.

100  {
101  return $this->_params;
102  }

◆ getReturnType()

getReturnType ( )

Retrieve return type

Returns
string

Definition at line 78 of file Prototype.php.

79  {
80  return $this->_return->getType();
81  }

◆ getReturnValue()

getReturnValue ( )

Retrieve the return value object

@access public

Returns
Zend_Server_Reflection_ReturnValue

Definition at line 89 of file Prototype.php.

90  {
91  return $this->_return;
92  }

The documentation for this class was generated from the following file: