Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Zend_Server_Reflection_ReturnValue Class Reference

Public Member Functions

 __construct ($type='mixed', $description='')
 
 getType ()
 
 setType ($type)
 
 getDescription ()
 
 setDescription ($description)
 

Protected Attributes

 $_type
 
 $_description
 

Detailed Description

Definition at line 33 of file ReturnValue.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $type = 'mixed',
  $description = '' 
)

Constructor

Parameters
string$typeReturn value type
string$descriptionReturn value type

Definition at line 53 of file ReturnValue.php.

54  {
55  $this->setType($type);
57  }
$type
Definition: item.phtml:13

Member Function Documentation

◆ getDescription()

getDescription ( )

Retrieve parameter description

Returns
string

Definition at line 90 of file ReturnValue.php.

◆ getType()

getType ( )

Retrieve parameter type

Returns
string

Definition at line 64 of file ReturnValue.php.

◆ setDescription()

setDescription (   $description)

Set parameter description

Parameters
string | null$description
Returns
void

Definition at line 101 of file ReturnValue.php.

102  {
103  if (!is_string($description) && (null !== $description)) {
104  #require_once 'Zend/Server/Reflection/Exception.php';
105  throw new Zend_Server_Reflection_Exception('Invalid parameter description');
106  }
107 
108  $this->_description = $description;
109  }

◆ setType()

setType (   $type)

Set parameter type

Parameters
string | null$type
Returns
void

Definition at line 75 of file ReturnValue.php.

76  {
77  if (!is_string($type) && (null !== $type)) {
78  #require_once 'Zend/Server/Reflection/Exception.php';
79  throw new Zend_Server_Reflection_Exception('Invalid parameter type');
80  }
81 
82  $this->_type = $type;
83  }
$type
Definition: item.phtml:13

Field Documentation

◆ $_description

$_description
protected

Definition at line 45 of file ReturnValue.php.

◆ $_type

$_type
protected

Definition at line 39 of file ReturnValue.php.


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