vendor/api-platform/core/src/Action/PlaceholderAction.php line 21

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the API Platform project.
  4. *
  5. * (c) Kévin Dunglas <dunglas@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. declare(strict_types=1);
  11. namespace ApiPlatform\Action;
  12. /**
  13. * Placeholder returning the data passed in parameter.
  14. *
  15. * @author Kévin Dunglas <dunglas@gmail.com>
  16. */
  17. final class PlaceholderAction
  18. {
  19. /**
  20. * @param object $data
  21. *
  22. * @return object
  23. */
  24. public function __invoke($data)
  25. {
  26. return $data;
  27. }
  28. }
  29. class_alias(PlaceholderAction::class, \ApiPlatform\Core\Action\PlaceholderAction::class);