2019-04-16 12:13:33 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of the NelmioApiDocBundle package.
|
|
|
|
*
|
|
|
|
* (c) Nelmio
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Nelmio\ApiDocBundle\ModelDescriber;
|
|
|
|
|
|
|
|
use Nelmio\ApiDocBundle\Model\Model;
|
2020-05-28 13:19:11 +02:00
|
|
|
use OpenApi\Annotations as OA;
|
2019-04-16 12:13:33 +02:00
|
|
|
use Symfony\Component\PropertyInfo\Type;
|
|
|
|
|
|
|
|
class FallbackObjectModelDescriber implements ModelDescriberInterface
|
|
|
|
{
|
2020-05-28 13:19:11 +02:00
|
|
|
public function describe(Model $model, OA\Schema $schema)
|
2019-04-16 12:13:33 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public function supports(Model $model): bool
|
|
|
|
{
|
|
|
|
return Type::BUILTIN_TYPE_OBJECT === $model->getType()->getBuiltinType();
|
|
|
|
}
|
|
|
|
}
|