Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReturnValue.php
Go to the documentation of this file.
1 <?php
34 {
39  protected $_type;
40 
45  protected $_description;
46 
53  public function __construct($type = 'mixed', $description = '')
54  {
55  $this->setType($type);
57  }
58 
64  public function getType()
65  {
66  return $this->_type;
67  }
68 
75  public function setType($type)
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  }
84 
90  public function getDescription()
91  {
92  return $this->_description;
93  }
94 
101  public function setDescription($description)
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  }
110 }
$type
Definition: item.phtml:13
__construct($type='mixed', $description='')
Definition: ReturnValue.php:53