vendor/nelmio/api-doc-bundle/src/PropertyDescriber/PropertyDescriberInterface.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the NelmioApiDocBundle package.
  4. *
  5. * (c) Nelmio
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Nelmio\ApiDocBundle\PropertyDescriber;
  11. use OpenApi\Annotations\Schema;
  12. use Symfony\Component\PropertyInfo\Type;
  13. interface PropertyDescriberInterface
  14. {
  15. /**
  16. * @param Type[] $types
  17. * @param string[]|null $groups Deprecated use $context['groups'] instead
  18. * @param Schema $schema Allows to make changes inside of the schema (e.g. adding required fields)
  19. * @param array<string, mixed> $context Context options for describing the property
  20. */
  21. public function describe(array $types, Schema $property, array $groups = null /* , ?Schema $schema = null */ /* , array $context = [] */);
  22. /**
  23. * @param Type[] $types
  24. */
  25. public function supports(array $types): bool;
  26. }