| Current Path : /home/rtorresani/www/vendor/laminas/laminas-code/src/Generator/DocBlock/Tag/ |
| Current File : //home/rtorresani/www/vendor/laminas/laminas-code/src/Generator/DocBlock/Tag/ThrowsTag.php |
<?php
namespace Laminas\Code\Generator\DocBlock\Tag;
class ThrowsTag extends AbstractTypeableTag implements TagInterface
{
/**
* @return string
*/
public function getName()
{
return 'throws';
}
/**
* @return string
*/
public function generate()
{
return '@throws'
. (! empty($this->types) ? ' ' . $this->getTypesAsString() : '')
. (! empty($this->description) ? ' ' . $this->description : '');
}
}