Class luya\admin\openapi\phpdoc\PhpDocReturn
Inheritance | luya\admin\openapi\phpdoc\PhpDocReturn |
---|---|
Available since version | 3.2.0 |
Source Code | https://github.com/luyadev/luya-module-admin/blob/master/src/openapi/phpdoc/PhpDocReturn.php |
Return Object from PhpDoc.
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$definition | luya\admin\openapi\phpdoc\PhpDocReturn | ||
$phpDocParser | luya\admin\openapi\phpdoc\PhpDocReturn |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | luya\admin\openapi\phpdoc\PhpDocReturn | |
getDescription() | luya\admin\openapi\phpdoc\PhpDocReturn | |
getType() | PhpDocType | luya\admin\openapi\phpdoc\PhpDocReturn |
Property Details
Method Details
public void __construct ( luya\admin\openapi\phpdoc\PhpDocParser $phpDocParser, array $definition ) | ||
$phpDocParser | ||
$definition |
public function __construct(PhpDocParser $phpDocParser, array $definition)
{
$this->phpDocParser = $phpDocParser;
$this->definition = $definition;
}
public void getDescription ( ) |
public function getDescription()
{
return $this->definition[2] ?? '';
}
PhpDocType
public luya\admin\openapi\phpdoc\PhpDocType|false getType ( ) |
public function getType()
{
return isset($this->definition[1]) ? new PhpDocType($this->phpDocParser, $this->definition[1]) : false;
}