FakeInjectableDelimiterProcessor.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of the league/commonmark package.
  5. *
  6. * (c) Colin O'Dell <colinodell@gmail.com>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace League\CommonMark\Tests\Unit\Environment;
  12. use League\CommonMark\Delimiter\DelimiterInterface;
  13. use League\CommonMark\Delimiter\Processor\DelimiterProcessorInterface;
  14. use League\CommonMark\Environment\EnvironmentAwareInterface;
  15. use League\CommonMark\Node\Inline\AbstractStringContainer;
  16. use League\Config\ConfigurationAwareInterface;
  17. final class FakeInjectableDelimiterProcessor implements DelimiterProcessorInterface, ConfigurationAwareInterface, EnvironmentAwareInterface
  18. {
  19. use FakeInjectableTrait;
  20. public function getOpeningCharacter(): string
  21. {
  22. return 'x';
  23. }
  24. public function getClosingCharacter(): string
  25. {
  26. return 'x';
  27. }
  28. public function getMinLength(): int
  29. {
  30. return 1;
  31. }
  32. public function getDelimiterUse(DelimiterInterface $opener, DelimiterInterface $closer): int
  33. {
  34. return 0;
  35. }
  36. public function process(AbstractStringContainer $opener, AbstractStringContainer $closer, int $delimiterUse): void
  37. {
  38. }
  39. }