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