FooTransformer.php 891 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /*
  3. * This file is part of PHP CS Fixer.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. * Dariusz Rumiński <dariusz.ruminski@gmail.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. namespace PhpCsFixer\Tests\Fixtures\Test\AbstractTransformerTest;
  12. use PhpCsFixer\Tokenizer\AbstractTransformer;
  13. use PhpCsFixer\Tokenizer\Token;
  14. use PhpCsFixer\Tokenizer\Tokens;
  15. /**
  16. * @internal
  17. */
  18. final class FooTransformer extends AbstractTransformer
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function getRequiredPhpVersionId(): int
  24. {
  25. return 50000;
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function process(Tokens $tokens, Token $token, int $index): void
  31. {
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function getCustomTokens(): array
  37. {
  38. return [];
  39. }
  40. }