DeprecatedFixer.php 989 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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;
  12. use PhpCsFixer\AbstractFixer;
  13. use PhpCsFixer\Fixer\DeprecatedFixerInterface;
  14. use PhpCsFixer\Tokenizer\Tokens;
  15. final class DeprecatedFixer extends AbstractFixer implements DeprecatedFixerInterface
  16. {
  17. public function getDefinition()
  18. {
  19. }
  20. public function isCandidate(Tokens $tokens)
  21. {
  22. }
  23. public function doSomethingWithCreateConfigDefinition()
  24. {
  25. return $this->createConfigurationDefinition();
  26. }
  27. public function getSuccessorsNames()
  28. {
  29. return ['testA', 'testB'];
  30. }
  31. public function getName()
  32. {
  33. return 'Vendor4/foo';
  34. }
  35. protected function applyFix(\SplFileInfo $file, Tokens $tokens)
  36. {
  37. }
  38. }