Improve php docs

This commit is contained in:
Ener-Getick 2016-07-30 20:27:51 +02:00
parent 6ff6f2b345
commit d1adffe41f
No known key found for this signature in database
GPG Key ID: 9E5D2DB67BF054DD
4 changed files with 2 additions and 11 deletions

View File

@ -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;

View File

@ -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) {

View File

@ -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)
{

View File

@ -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) {