Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Server / Reflection / ReflectionReturnValue.php
blob42b1e97445f99a06f4712b44e4cb7e0f41d6ea4d
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Server\Reflection;
12 /**
13 * Return value reflection
15 * Stores the return value type and description
17 class ReflectionReturnValue
19 /**
20 * Return value type
21 * @var string
23 protected $type;
25 /**
26 * Return value description
27 * @var string
29 protected $description;
31 /**
32 * Constructor
34 * @param string $type Return value type
35 * @param string $description Return value type
37 public function __construct($type = 'mixed', $description = '')
39 $this->setType($type);
40 $this->setDescription($description);
43 /**
44 * Retrieve parameter type
46 * @return string
48 public function getType()
50 return $this->type;
53 /**
54 * Set parameter type
56 * @param string|null $type
57 * @throws Exception\InvalidArgumentException
58 * @return void
60 public function setType($type)
62 if (!is_string($type) && (null !== $type)) {
63 throw new Exception\InvalidArgumentException('Invalid parameter type');
66 $this->type = $type;
69 /**
70 * Retrieve parameter description
72 * @return string
74 public function getDescription()
76 return $this->description;
79 /**
80 * Set parameter description
82 * @param string|null $description
83 * @throws Exception\InvalidArgumentException
84 * @return void
86 public function setDescription($description)
88 if (!is_string($description) && (null !== $description)) {
89 throw new Exception\InvalidArgumentException('Invalid parameter description');
92 $this->description = $description;