mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Improve php docs
This commit is contained in:
parent
6ff6f2b345
commit
d1adffe41f
@ -27,10 +27,7 @@ class ApiDocGenerator
|
||||
$this->describers = $describers;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Swagger
|
||||
*/
|
||||
public function extract()
|
||||
public function extract(): Swagger
|
||||
{
|
||||
if (null !== $this->swagger) {
|
||||
return $this->swagger;
|
||||
|
@ -16,9 +16,6 @@ use ApiPlatform\Core\Swagger\DocumentationNormalizer;
|
||||
|
||||
class ApiPlatformDescriber extends ExternalDocDescriber
|
||||
{
|
||||
/**
|
||||
* @param string $projectPath
|
||||
*/
|
||||
public function __construct(Documentation $documentation, DocumentationNormalizer $normalizer, bool $overwrite = false)
|
||||
{
|
||||
parent::__construct(function () use ($documentation, $normalizer) {
|
||||
|
@ -20,7 +20,7 @@ class ExternalDocDescriber implements DescriberInterface
|
||||
|
||||
/**
|
||||
* @param array|callable $externalDoc
|
||||
* @param int $strategy
|
||||
* @param bool $overwrite
|
||||
*/
|
||||
public function __construct($externalDoc, bool $overwrite = false)
|
||||
{
|
||||
|
@ -13,9 +13,6 @@ namespace EXSyst\Bundle\ApiDocBundle\Describer;
|
||||
|
||||
class SwaggerPhpDescriber extends ExternalDocDescriber
|
||||
{
|
||||
/**
|
||||
* @param string $projectPath
|
||||
*/
|
||||
public function __construct(string $projectPath, bool $overwrite = false)
|
||||
{
|
||||
parent::__construct(function () use ($projectPath) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user