![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/laminas/laminas-server/src/Reflection/ |
<?php /** * @see https://github.com/laminas/laminas-server for the canonical source repository */ namespace Laminas\Server\Reflection; use function is_string; /** * Return value reflection * * Stores the return value type and description */ class ReflectionReturnValue { /** * Return value type * * @var string */ protected $type; /** * Return value description * * @var string */ protected $description; /** * Constructor * * @param string $type Return value type * @param string $description Return value type */ public function __construct($type = 'mixed', $description = '') { $this->setType($type); $this->setDescription($description); } /** * Retrieve parameter type * * @return string */ public function getType() { return $this->type; } /** * Set parameter type * * @param string|null $type * @throws Exception\InvalidArgumentException * @return void */ public function setType($type) { if (! is_string($type) && (null !== $type)) { throw new Exception\InvalidArgumentException('Invalid parameter type'); } $this->type = $type; } /** * Retrieve parameter description * * @return string */ public function getDescription() { return $this->description; } /** * Set parameter description * * @param string|null $description * @throws Exception\InvalidArgumentException * @return void */ public function setDescription($description) { if (! is_string($description) && (null !== $description)) { throw new Exception\InvalidArgumentException('Invalid parameter description'); } $this->description = $description; } }